UI: Add fullscreen mode to docs

This commit is contained in:
Michael Shilman 2020-10-22 16:03:28 +08:00
parent 75b8a5a69c
commit 3c9363aa50

View File

@ -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 }) => (