From 6fa0e814de0f428edde49694846e034e88d1070e Mon Sep 17 00:00:00 2001 From: "Mr. M" Date: Thu, 29 May 2025 09:28:57 +0200 Subject: [PATCH] chore: Add a minimum spacing for toasts, b=(no-bug), c=common --- src/zen/common/styles/zen-popup.css | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/zen/common/styles/zen-popup.css b/src/zen/common/styles/zen-popup.css index fc21f5e22..0a0e0286e 100644 --- a/src/zen/common/styles/zen-popup.css +++ b/src/zen/common/styles/zen-popup.css @@ -330,17 +330,18 @@ menuseparator { #zen-toast-container { position: fixed; - top: calc(var(--zen-element-separation) * 2); + --zen-toast-spacing: max(8px, calc(var(--zen-element-separation) * 2)); + top: var(--zen-toast-spacing); z-index: 1000; display: flex; align-items: end; :root:not([zen-right-side='true']) & { - right: calc(var(--zen-element-separation) * 2); + right: var(--zen-toast-spacing); } :root[zen-right-side='true'] & { - left: calc(var(--zen-element-separation) * 2); + left: var(--zen-toast-spacing); } & .zen-toast {