Skip to content

Commit 7c35d1a

Browse files
committed
fix viewport
1 parent 54c00ee commit 7c35d1a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/taskpane/components/App.stories.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Meta, StoryObj } from "@storybook/react-vite";
22
import { within, expect, userEvent, screen } from "storybook/test";
3-
import { INITIAL_VIEWPORTS } from "@storybook/addon-viewport";
3+
import { INITIAL_VIEWPORTS } from "storybook/viewport";
44
import App from "./App";
55
import * as React from "react";
66
import { IssuesLink } from "./IssuesLink/IssuesLink";
@@ -29,8 +29,7 @@ const meta = {
2929
},
3030
parameters: {
3131
viewport: {
32-
viewports: INITIAL_VIEWPORTS,
33-
defaultViewport: "iphonese2",
32+
options: INITIAL_VIEWPORTS,
3433
},
3534
msw: {
3635
handlers: {
@@ -39,6 +38,9 @@ const meta = {
3938
},
4039
},
4140
},
41+
globals: {
42+
viewport: { value: "iphonese2", isRotated: false },
43+
},
4244
} satisfies Meta<typeof App>;
4345

4446
export default meta;

0 commit comments

Comments
 (0)