@eclass/ui-kit 1.57.2 → 1.57.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7273,7 +7273,7 @@ function FlashNotification({
7273
7273
  m: m2
7274
7274
  }) {
7275
7275
  const [shouldRenderToaster, setShouldRenderToaster] = useState(false);
7276
- const [isMobile] = useMediaQuery("(max-width: 425px)");
7276
+ const [isMobile] = useMediaQuery("(max-width: 440px)");
7277
7277
  useEffect(() => {
7278
7278
  if (typeof window !== "undefined" && !window[GLOBAL_TOASTER_FLAG]) {
7279
7279
  window[GLOBAL_TOASTER_FLAG] = true;
@@ -7292,12 +7292,13 @@ function FlashNotification({
7292
7292
  maxWidth: "initial",
7293
7293
  ...isMobile && {
7294
7294
  margin: "-4px -10px",
7295
- borderRadius: 0
7295
+ borderRadius: 0,
7296
+ w: "100vw!important"
7296
7297
  }
7297
7298
  },
7298
7299
  children: message
7299
7300
  }), {
7300
- duration: state === "success" ? handleTime(message) : Infinity,
7301
+ duration: ["success", "info"].includes(state) ? handleTime(message) : Infinity,
7301
7302
  id: alertStates[state].id
7302
7303
  });
7303
7304
  }, [message, state, m2]);