Skip to content

Commit 0a74447

Browse files
committed
Hide some items in the toolbar
1 parent 92303ce commit 0a74447

File tree

4 files changed

+31
-2
lines changed

4 files changed

+31
-2
lines changed

.storybook/DocsContainer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export const DocsContainer = ({ children, context }) => {
4343
.docblock-argstable-head th:nth-child(3), .docblock-argstable-body tr > td:nth-child(3) {
4444
visibility: collapse;
4545
}
46+
4647
`}</style>
4748
<BaseContainer
4849
context={{

.storybook/manager-head.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
display: none;
1010
}
1111

12+
[id^="hidden"],
13+
[data-parent-id^="hidden"] {
14+
display: none !important;
15+
}
16+
1217
@font-face {
1318
font-family: Marianne;
1419
src: url("fonts/Marianne-Light.woff2") format("woff2"), url("fonts/Marianne-Light.woff") format("woff");

docs/intro.stories.mdx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
11
import { Meta } from "@storybook/addon-docs";
22
import { useDarkMode } from "storybook-dark-mode";
33

4-
<Meta title="Guides/🇫🇷 Introduction" />
4+
<Meta
5+
title="Guides/🇫🇷 Introduction"
6+
parameters={{
7+
"viewMode": "docs",
8+
"previewTabs": {
9+
"canvas": { "hidden": true },
10+
"zoom": { "hidden": true },
11+
"storybook/background": { "hidden": true },
12+
"storybook/viewport": { "hidden": true },
13+
},
14+
}}
15+
/>
16+
517

618
<div style={{ "margin": "0 auto", "maxWidth": "600px", "textAlign": "center" }}>
719
<img src="repo-card.png" />

docs/quick-start.stories.mdx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,18 @@ import { Alert } from "../dist/Alert";
33
import ReactMarkdown from "react-markdown";
44

55

6-
<Meta title="Guides/🔧 Initial setup" />
6+
<Meta
7+
title="Guides/🔧 Initial setup"
8+
parameters={{
9+
"viewMode": "docs",
10+
"previewTabs": {
11+
"canvas": { "hidden": true },
12+
"zoom": { "hidden": true },
13+
"storybook/background": { "hidden": true },
14+
"storybook/viewport": { "hidden": true },
15+
},
16+
}}
17+
/>
718

819

920
# 🔧 Initial setup

0 commit comments

Comments
 (0)