fix(ui): keep update banner clear of the toast viewport on small screens

Address Greptile review: below md the bottom-left toast viewport spans the
width, so the update banner now sits top-right on small screens and moves to
bottom-right from md up, so the two never overlap.
This commit is contained in:
Dotta committed 2026-07-21 08:04:53 -05:00
1 parent f9f6a9c86c
commit 66504b49d5
1 file changed
+4 -1
+4 -1
View File
@@ -26,7 +26,10 @@ export function AppUpdateBanner() {
<aside
role="status"
aria-live="polite"
className="fixed bottom-3 right-3 z-(--z-120) w-full max-w-sm px-1"
// Below md the toast viewport (bottom-left, w-full) spans the width, so
// sit at the top to avoid overlapping it; from md up there is room for
// both bottom corners.
className="fixed right-3 top-3 z-(--z-120) w-full max-w-sm px-1 md:top-auto md:bottom-3"
>
<div className="pointer-events-auto rounded-sm border border-sky-300 bg-sky-50 text-sky-900 shadow-lg backdrop-blur-xl dark:border-sky-500/25 dark:bg-sky-950/60 dark:text-sky-100">
<div className="flex items-start gap-3 px-3 py-2.5">