Skip to content

Commit

Permalink
adjust decorator to screen size
Browse files Browse the repository at this point in the history
  • Loading branch information
sirineJ committed Dec 20, 2024
1 parent b20f528 commit 0783066
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions packages/circuit-ui/components/Modal/Modal.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,14 @@ export default {
},
},
decorators: [
(Story) => (
<FullViewport>
(Story, context) =>
context.globals.viewport === 'smallMobile' ? (
<FullViewport>
<Story />
</FullViewport>
) : (
<Story />
</FullViewport>
),
),
] as Decorator[],
};

Expand Down

0 comments on commit 0783066

Please sign in to comment.