From 1ff89b97ef00f9a35bbe3fe55dffaa3ed80e9bcd Mon Sep 17 00:00:00 2001 From: ntsekouras Date: Tue, 18 Oct 2022 12:34:53 +0300 Subject: [PATCH] fix mobile styles --- .../inserter/media-tab/media-panel.js | 4 +-- .../src/components/inserter/style.scss | 32 +++++++++++-------- 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/packages/block-editor/src/components/inserter/media-tab/media-panel.js b/packages/block-editor/src/components/inserter/media-tab/media-panel.js index b2622a7f438d05..0874dea4a4ce29 100644 --- a/packages/block-editor/src/components/inserter/media-tab/media-panel.js +++ b/packages/block-editor/src/components/inserter/media-tab/media-panel.js @@ -14,6 +14,7 @@ import MediaList from './media-list'; import { useMediaResults, useDebouncedInput } from './hooks'; import InserterNoResults from '../no-results'; +const INITIAL_MEDIA_ITEMS_PER_PAGE = 10; const EMPTY_ARRAY = []; export function MediaCategoryDialog( { rootClientId, onInsert, category } ) { @@ -26,7 +27,7 @@ export function MediaCategoryDialog( { rootClientId, onInsert, category } ) { return () => clearTimeout( timeout ); }, [ category ] ); return ( -
+