Add Capacitor Browser dependency and update safe area handling in components

This commit is contained in:
Mo Tarbin
2025-08-30 01:35:38 -04:00
parent e99a06654e
commit 4e31190291
11 changed files with 98 additions and 50 deletions

View File

@@ -109,6 +109,16 @@ class StatusBarManager {
// Note: We no longer apply padding directly to the body to avoid double
// application with component-level safe area handling. Components should
// use the CSS custom properties or the utility classes from safe-area.css
// Let's apply it directly to body for now:
if (Capacitor.getPlatform() === 'android') {
// removing the top padding on android as it is handled by the navbar
// and adding it causes double padding
// document.body.style.paddingTop = `${insets.top}px`
document.body.style.paddingRight = `${insets.right}px`
document.body.style.paddingBottom = `${insets.bottom}px`
document.body.style.paddingLeft = `${insets.left}px`
}
}
/**