Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import { Card, CardBody } from '@wordpress/components';
import { __ } from '@wordpress/i18n';
import { useZoomOut } from '@wordpress/block-editor';
import { useDispatch } from '@wordpress/data';
import { store as editorStore } from '@wordpress/editor';

/**
* Internal dependencies
Expand All @@ -14,7 +16,9 @@ import SidebarNavigationScreenGlobalStylesContent from '../sidebar-navigation-sc
function ScreenStyleVariations() {
// Move to zoom out mode when this component is mounted
// and back to the previous mode when unmounted.
const { setDeviceType } = useDispatch( editorStore );
useZoomOut();
setDeviceType( 'desktop' );

return (
<>
Expand Down