From ba2aa4bee6396bdc40e6c47ed9bf9cfbf4e267e3 Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Wed, 26 Nov 2025 11:10:52 +0800 Subject: [PATCH] fix(layout): skip applying safe area insets when the iframe content is reloaded (#2550) --- apps/readest-app/src-tauri/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/readest-app/src-tauri/src/lib.rs b/apps/readest-app/src-tauri/src/lib.rs index 1a86d9d7..22cb9c6c 100644 --- a/apps/readest-app/src-tauri/src/lib.rs +++ b/apps/readest-app/src-tauri/src/lib.rs @@ -269,6 +269,7 @@ pub fn run() { r#" window.addEventListener('DOMContentLoaded', function() { const isTauriLocal = window.location.protocol === 'tauri:' || + window.location.protocol === 'about:' || window.location.hostname === 'tauri.localhost'; const needsSafeArea = !isTauriLocal; if (needsSafeArea && !document.getElementById('safe-area-style')) {