- { ! isDistractionFree && (
-
- ) }
- { isLargeViewport && (
- <>
- { ! hasFixedToolbar && (
+ <>
+
+
+ { ! isDistractionFree && (
+
+ ) }
+ { isLargeViewport && (
+ <>
+ { ! hasFixedToolbar && (
+
+ ) }
- ) }
-
-
- { ! isDistractionFree && (
- ) }
- { isZoomedOutViewExperimentEnabled &&
- ! isDistractionFree &&
- ! hasFixedToolbar && (
+ { ! isDistractionFree && (
{
- setPreviewDeviceType(
- 'Desktop'
- );
- __unstableSetEditorMode(
- isZoomedOutView
- ? 'edit'
- : 'zoom-out'
- );
- } }
+ label={ __( 'List View' ) }
+ onClick={ toggleListView }
+ shortcut={ listViewShortcut }
+ showTooltip={ ! showIconLabels }
+ variant={
+ showIconLabels
+ ? 'tertiary'
+ : undefined
+ }
+ aria-expanded={ isListViewOpen }
/>
) }
- >
- ) }
-
-
+ { isZoomedOutViewExperimentEnabled &&
+ ! isDistractionFree &&
+ ! hasFixedToolbar && (
+
{
+ setPreviewDeviceType(
+ 'Desktop'
+ );
+ __unstableSetEditorMode(
+ isZoomedOutView
+ ? 'edit'
+ : 'zoom-out'
+ );
+ } }
+ />
+ ) }
+ >
+ ) }
+
+