mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 16:11:33 +08:00
escape hatch preview component
This commit is contained in:
parent
35562a0ab9
commit
1d455d4adf
@ -150,7 +150,7 @@ const Preview: FunctionComponent<PreviewProps> = ({
|
||||
const [expanded, setExpanded] = useState(isExpanded);
|
||||
const { source, actionItem } = getSource(withSource, expanded, setExpanded);
|
||||
const [scale, setScale] = useState(1);
|
||||
const previewClasses = className ? `${className} sbdocs-preview` : 'sbdocs-preview';
|
||||
const previewClasses = className ? `${className} sbdocs sbdocs-preview` : 'sbdocs sbdocs-preview';
|
||||
|
||||
if (withToolbar && Array.isArray(children)) {
|
||||
logger.warn('Cannot use toolbar with multiple preview children, disabling');
|
||||
|
Loading…
x
Reference in New Issue
Block a user