Keep toasts above the Publish bar and clear the landscape notch

This commit is contained in:
iamdoubz committed 2026-11-05 22:05:32 -06:00
1 parent 4141a413aa
commit d573ce2409
1 file changed
+6 -2
+6 -2
View File
@@ -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);