Skip to content

Commit 9bd64b8

Browse files
authored
fix: Set panelPosition of storybook controls to right (#1284)
[CLNP-5229](https://sendbird.atlassian.net/browse/CLNP-5229) * Set the `panelPosition` of storybook controls to `right` [CLNP-5229]: https://sendbird.atlassian.net/browse/CLNP-5229?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
1 parent c4a057d commit 9bd64b8

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

.storybook/manager.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { addons } from '@storybook/manager-api';
2+
3+
addons.setConfig({
4+
navSize: 300,
5+
rightPanelWidth: 300,
6+
panelPosition: 'right',
7+
enableShortcuts: true,
8+
showToolbar: true,
9+
theme: undefined,
10+
selectedPanel: undefined,
11+
initialActive: 'sidebar',
12+
sidebar: {
13+
showRoots: false,
14+
collapsedRoots: ['other'],
15+
},
16+
toolbar: {
17+
title: { hidden: false },
18+
zoom: { hidden: false },
19+
eject: { hidden: false },
20+
copy: { hidden: false },
21+
fullscreen: { hidden: false },
22+
},
23+
});

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
"@rollup/plugin-replace": "^5.0.4",
9999
"@rollup/plugin-typescript": "^11.1.5",
100100
"@storybook/addon-essentials": "^8.0.9",
101+
"@storybook/manager-api": "^8.4.7",
101102
"@storybook/react-vite": "^8.0.9",
102103
"@svgr/rollup": "^8.1.0",
103104
"@testing-library/jest-dom": "^5.16.5",

yarn.lock

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2774,6 +2774,7 @@ __metadata:
27742774
"@sendbird/react-uikit-message-template-view": 0.0.2
27752775
"@sendbird/uikit-tools": 0.0.2
27762776
"@storybook/addon-essentials": ^8.0.9
2777+
"@storybook/manager-api": ^8.4.7
27772778
"@storybook/react-vite": ^8.0.9
27782779
"@svgr/rollup": ^8.1.0
27792780
"@testing-library/jest-dom": ^5.16.5
@@ -3164,6 +3165,15 @@ __metadata:
31643165
languageName: node
31653166
linkType: hard
31663167

3168+
"@storybook/manager-api@npm:^8.4.7":
3169+
version: 8.4.7
3170+
resolution: "@storybook/manager-api@npm:8.4.7"
3171+
peerDependencies:
3172+
storybook: ^8.2.0 || ^8.3.0-0 || ^8.4.0-0 || ^8.5.0-0 || ^8.6.0-0
3173+
checksum: 2b826ec55de7ea0b5b5151dfa896f3e7eddfd36ede61f8a7ad14a37733d5d5645565f863dbde7e2272f1e9b5717f26de7802ae60e297a2647ee2c4c072ed3069
3174+
languageName: node
3175+
linkType: hard
3176+
31673177
"@storybook/preview-api@npm:^8.3.5":
31683178
version: 8.3.5
31693179
resolution: "@storybook/preview-api@npm:8.3.5"

0 commit comments

Comments
 (0)