fix(ci): expand grids for mobile snapshots

This commit is contained in:
Lukasz Mierzwa
2026-03-09 15:12:43 +00:00
committed by Łukasz Mierzwa
parent 67bb59252e
commit 4283075c4b
5 changed files with 8 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 1.4 MiB

View File

@@ -1,4 +1,4 @@
import React from "react";
import * as React from "react";
import { createRoot } from "react-dom/client";
import { addDays } from "date-fns/addDays";
@@ -194,7 +194,11 @@ window.fetch = async (
type StoryMap = Record<string, () => React.ReactNode>;
const Modal: React.FC<{ children: React.ReactNode }> = ({ children }) => (
const Modal: React.FC<{ children: React.ReactNode }> = ({
children,
}: {
children: React.ReactNode;
}) => (
<div className="modal d-block" style={{ position: "relative" }}>
<div className="modal-dialog modal-lg" role="document">
<div className="modal-content">{children}</div>
@@ -277,6 +281,7 @@ const makeGridAlertStore = (): AlertStore => {
const gridStory = (): React.ReactNode => {
const alertStore = makeGridAlertStore();
const settingsStore = new Settings(null);
settingsStore.alertGroupConfig.setDefaultCollapseState("expanded");
const silenceFormStore = new SilenceFormStore();
return (
<Grid
@@ -290,6 +295,7 @@ const gridStory = (): React.ReactNode => {
const gridColorTitleBarStory = (): React.ReactNode => {
const alertStore = makeGridAlertStore();
const settingsStore = new Settings(null);
settingsStore.alertGroupConfig.setDefaultCollapseState("expanded");
const silenceFormStore = new SilenceFormStore();
settingsStore.alertGroupConfig.setColorTitleBar(true);
return (