From d573ce24098a642f384a789af822728884435088 Mon Sep 17 00:00:00 2001 From: iamdoubz <> Date: Thu, 5 Nov 2026 22:05:32 -0600 Subject: [PATCH] Keep toasts above the Publish bar and clear the landscape notch --- frontend/src/App.svelte | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/src/App.svelte b/frontend/src/App.svelte index f9ec111..fd34e77 100644 --- a/frontend/src/App.svelte +++ b/frontend/src/App.svelte @@ -91,7 +91,8 @@ main { max-width: 1120px; margin: 0 auto; - padding: var(--s5) var(--gutter) calc(var(--nav-h) + var(--s6) + env(safe-area-inset-bottom)); + padding: var(--s5) max(var(--gutter), env(safe-area-inset-right)) calc(var(--nav-h) + var(--s6) + env(safe-area-inset-bottom)) + max(var(--gutter), env(safe-area-inset-left)); /* landscape notch */ outline: none; } @@ -116,7 +117,7 @@ display: grid; place-items: center; width: 56px; height: 30px; border-radius: var(--r-full); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); } - nav a:hover .pill { background: var(--surface-2); } + @media (hover: hover) { nav a:hover .pill { background: var(--surface-2); } } nav a[aria-current='page'] { color: var(--primary-text); } nav a[aria-current='page'] .pill { background: var(--primary-soft); } nav a:focus-visible { outline: none; } @@ -141,6 +142,9 @@ width: max-content; max-width: calc(100vw - 2 * var(--gutter)); } @media (min-width: 1024px) { .toast-region { bottom: var(--s5); } } + /* On the review screen, sit above the sticky Publish bar instead of covering it. */ + :global(body:has(.publish-bar)) .toast-region { bottom: calc(var(--nav-h) + 88px + env(safe-area-inset-bottom)); } + @media (min-width: 1024px) { :global(body:has(.publish-bar)) .toast-region { bottom: 96px; } } .toast { display: flex; align-items: center; gap: var(--s2); padding: var(--s3) var(--s4); border-radius: var(--r-md);