From 584a2252104b97184618ad23947b6f786213a201 Mon Sep 17 00:00:00 2001 From: DiscoverForever <595740536@qq.com> Date: Wed, 30 Oct 2024 18:09:53 +0800 Subject: [PATCH] Fix: Accidentally deleted duplicate declarations max-width, when build by vite. Vite removes duplicate max-width declarations in CSS during the build process, keeping only the last one, which causes max-width to fail in Chrome. --- src/toastify.css | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/toastify.css b/src/toastify.css index ccd65c8..b1ff5be 100644 --- a/src/toastify.css +++ b/src/toastify.css @@ -70,8 +70,13 @@ margin-right: auto; left: 0; right: 0; - max-width: fit-content; - max-width: -moz-fit-content; + max-width: fit-content; +} + +@supports (max-width: -moz-fit-content) { + .toastify-center { + max-width: -moz-fit-content; + } } @media only screen and (max-width: 360px) {