Skip to content

Commit 6fa0e81

Browse files
committed
chore: Add a minimum spacing for toasts, b=(no-bug), c=common
1 parent 68191d2 commit 6fa0e81

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/zen/common/styles/zen-popup.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,17 +330,18 @@ menuseparator {
330330

331331
#zen-toast-container {
332332
position: fixed;
333-
top: calc(var(--zen-element-separation) * 2);
333+
--zen-toast-spacing: max(8px, calc(var(--zen-element-separation) * 2));
334+
top: var(--zen-toast-spacing);
334335
z-index: 1000;
335336
display: flex;
336337
align-items: end;
337338

338339
:root:not([zen-right-side='true']) & {
339-
right: calc(var(--zen-element-separation) * 2);
340+
right: var(--zen-toast-spacing);
340341
}
341342

342343
:root[zen-right-side='true'] & {
343-
left: calc(var(--zen-element-separation) * 2);
344+
left: var(--zen-toast-spacing);
344345
}
345346

346347
& .zen-toast {

0 commit comments

Comments
 (0)