summaryrefslogtreecommitdiffhomepage
path: root/packages/ui/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'packages/ui/src/components')
-rw-r--r--packages/ui/src/components/toast.css10
1 files changed, 9 insertions, 1 deletions
diff --git a/packages/ui/src/components/toast.css b/packages/ui/src/components/toast.css
index ed7ba4a20..de547f9c7 100644
--- a/packages/ui/src/components/toast.css
+++ b/packages/ui/src/components/toast.css
@@ -7,7 +7,9 @@
flex-direction: column;
gap: 8px;
max-width: min(400px, calc(100vw - 64px));
+ max-height: calc(100dvh - 96px);
width: 100%;
+ overflow: hidden;
pointer-events: none;
[data-slot="toast-list"] {
@@ -17,6 +19,8 @@
list-style: none;
margin: 0;
padding: 0;
+ max-height: 100%;
+ overflow-y: auto;
}
}
@@ -26,6 +30,8 @@
align-items: flex-start;
gap: 20px;
padding: 16px 20px;
+ max-height: min(420px, calc(100dvh - 96px));
+ overflow: hidden;
pointer-events: auto;
transition: all 150ms ease-out;
@@ -91,8 +97,10 @@
display: flex;
flex-direction: column;
gap: 2px;
+ min-height: 0;
min-width: 0;
- overflow: hidden;
+ overflow-x: hidden;
+ overflow-y: auto;
}
[data-slot="toast-title"] {