From f2ca73182779f3768a5c147c81d1d658958a8c66 Mon Sep 17 00:00:00 2001 From: spinline Date: Thu, 5 Feb 2026 21:11:36 +0300 Subject: [PATCH] fix(frontend): fix toast positioning with wrapper div and inline styles --- frontend/src/app.rs | 50 +++++++++++++++++--------------- frontend/src/components/toast.rs | 16 ++++++---- 2 files changed, 38 insertions(+), 28 deletions(-) diff --git a/frontend/src/app.rs b/frontend/src/app.rs index 4214baf..5922a45 100644 --- a/frontend/src/app.rs +++ b/frontend/src/app.rs @@ -11,35 +11,39 @@ pub fn App() -> impl IntoView { crate::store::provide_torrent_store(); view! { -
- + // Main app wrapper - ensures proper stacking context +
+ // Drawer layout +
+ -
- // Toolbar at the top - +
+ // Toolbar at the top + -
- - - } /> - "Settings Page (Coming Soon)"
} /> - - - +
+ + + } /> + "Settings Page (Coming Soon)"
} /> + + + - // Status Bar at the bottom - -
+ // Status Bar at the bottom + +
-
- - + + // Toast container - fixed positioning relative to viewport +
- - // Toast container - outside drawer for correct fixed positioning - } } diff --git a/frontend/src/components/toast.rs b/frontend/src/components/toast.rs index caac577..012a520 100644 --- a/frontend/src/components/toast.rs +++ b/frontend/src/components/toast.rs @@ -71,16 +71,22 @@ pub fn ToastContainer() -> impl IntoView { let notifications = store.notifications; view! { -
+ // Fixed to viewport with explicit inset values for reliable positioning +
+
+ +
} } />