Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

fix(app): offset toasts below the window chrome on macOS (#1744)

Hampus22bc2cab7435
diff --git a/fluxer_app/src/features/ui/toast/Toasts.module.css b/fluxer_app/src/features/ui/toast/Toasts.module.css
index a9263115b..2490a9ec9 100644
--- a/fluxer_app/src/features/ui/toast/Toasts.module.css
+++ b/fluxer_app/src/features/ui/toast/Toasts.module.css
@@ -20,11 +20,11 @@
left: 50%;
}
-:global(html.platform-native:not(.platform-macos) #toast-portal-root) .containerDesktop {
+:global(html.platform-native #toast-portal-root) .containerDesktop {
top: calc(1.5rem + env(safe-area-inset-top, 0px) + var(--native-titlebar-height, 0px));
}
-:global(html.platform-native:not(.platform-macos) #toast-portal-root) .containerMobile {
+:global(html.platform-native #toast-portal-root) .containerMobile {
top: calc(1rem + env(safe-area-inset-top, 0px) + var(--native-titlebar-height, 0px));
}