Skip to content

Commit 3e62f23

Browse files
committed
fix: match storybook layout pattern for AG-UI stories
Use absolute positioning with dark:bg-gray-950 wrapper to match the layout pattern used by all other Console stories. The previous height: 80vh approach didn't work with Storybook's centered layout mode. https://claude.ai/code/session_015b5wa5VYLPgMqspBpffpSj
1 parent ab771f9 commit 3e62f23

1 file changed

Lines changed: 28 additions & 4 deletions

File tree

stories/AgUi.stories.tsx

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,20 @@ export const Basic = () => {
2828
});
2929

3030
return (
31-
<div style={{ height: '80vh' }}>
32-
<div style={{ padding: '8px 0' }}>
31+
<div
32+
className="dark:bg-gray-950 bg-white"
33+
style={{
34+
position: 'absolute',
35+
top: 0,
36+
left: 0,
37+
right: 0,
38+
bottom: 0,
39+
padding: 20,
40+
margin: 20,
41+
borderRadius: 5
42+
}}
43+
>
44+
<div style={{ paddingBottom: 8 }}>
3345
<Input
3446
placeholder="AG-UI agent endpoint URL"
3547
value={endpoint}
@@ -98,8 +110,20 @@ export const WithToolCalls = () => {
98110
});
99111

100112
return (
101-
<div style={{ height: '80vh' }}>
102-
<div style={{ padding: '8px 0' }}>
113+
<div
114+
className="dark:bg-gray-950 bg-white"
115+
style={{
116+
position: 'absolute',
117+
top: 0,
118+
left: 0,
119+
right: 0,
120+
bottom: 0,
121+
padding: 20,
122+
margin: 20,
123+
borderRadius: 5
124+
}}
125+
>
126+
<div style={{ paddingBottom: 8 }}>
103127
<Input
104128
placeholder="AG-UI agent endpoint URL"
105129
value={endpoint}

0 commit comments

Comments
 (0)