🐛 adjust position of toast notification to top of the screen
Browse files at this commitb50a5926da70d0d3ec5a7d2fda852865ff5a43b0Parent: 7f98642- fix
- 🐛 adjust position of toast notification to top of the screen
2 changed files +2 -2
src/components/ui/date-picker.tsxmodified+1 -1
| @@ -148,7 +148,7 @@ export function DatePicker(props: { | |||
| 148 | <div | 148 | <div |
| 149 | ref={panel} | 149 | ref={panel} |
| 150 | data-kb-top-layer="" | 150 | data-kb-top-layer="" |
| 151 | - class="fixed z-[80] rounded-xl border border-border/80 bg-popover p-2.5 text-popover-foreground shadow-xl" | 151 | + class="pointer-events-auto fixed z-[80] rounded-xl border border-border/80 bg-popover p-2.5 text-popover-foreground shadow-xl" |
| 152 | style={{ left: `${position().left}px`, top: `${position().top}px`, width: `${position().width}px` }} | 152 | style={{ left: `${position().left}px`, top: `${position().top}px`, width: `${position().width}px` }} |
| 153 | on:pointerdown={(e) => e.stopPropagation()} | 153 | on:pointerdown={(e) => e.stopPropagation()} |
| 154 | > | 154 | > |
src/components/ui/toast.tsxmodified+1 -1
| @@ -24,7 +24,7 @@ function dismissToast(id: number) { | |||
| 24 | export function Toaster() { | 24 | export function Toaster() { |
| 25 | return ( | 25 | return ( |
| 26 | <Portal> | 26 | <Portal> |
| 27 | - <div class="pointer-events-none fixed inset-x-3 bottom-4 z-[80] flex flex-col items-end gap-2 sm:inset-x-auto sm:right-5 sm:w-96"> | 27 | + <div class="pointer-events-none fixed inset-x-3 top-4 z-[80] flex flex-col items-end gap-2 sm:inset-x-auto sm:right-5 sm:w-96"> |
| 28 | <For each={toasts()}> | 28 | <For each={toasts()}> |
| 29 | {(toast) => ( | 29 | {(toast) => ( |
| 30 | <div class="pointer-events-auto flex w-full items-start gap-3 rounded-xl border border-border bg-card px-3 py-3 text-card-foreground shadow-soft"> | 30 | <div class="pointer-events-auto flex w-full items-start gap-3 rounded-xl border border-border bg-card px-3 py-3 text-card-foreground shadow-soft"> |