mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 13:01:07 +08:00
UI: Add fullscreen mode to docs
This commit is contained in:
parent
75b8a5a69c
commit
3c9363aa50
@ -46,7 +46,7 @@ const fullScreenMapper = ({ api, state }: Combo) => ({
|
||||
|
||||
export const fullScreenTool: Addon = {
|
||||
title: 'fullscreen',
|
||||
match: (p) => p.viewMode === 'story',
|
||||
match: (p) => ['story', 'docs'].includes(p.viewMode),
|
||||
render: () => (
|
||||
<Consumer filter={fullScreenMapper}>
|
||||
{({ toggle, value, shortcut }) => (
|
||||
|
Loading…
x
Reference in New Issue
Block a user