diff --git a/packages/core/src/components/entry-editor/EditorInterface.tsx b/packages/core/src/components/entry-editor/EditorInterface.tsx index bc1ae4ec..901d65bc 100644 --- a/packages/core/src/components/entry-editor/EditorInterface.tsx +++ b/packages/core/src/components/entry-editor/EditorInterface.tsx @@ -303,7 +303,7 @@ const EditorInterface = ({ const editorLocale = useMemo( () => locales - ?.filter(l => l !== defaultLocale) + ?.filter(locale => isSmallScreen || locale !== defaultLocale) .map(locale => (
@@ -334,6 +335,7 @@ const EditorInterface = ({ fields, fieldsErrors, handleLocaleChange, + isSmallScreen, locales, selectedLocale, submitted, @@ -347,38 +349,6 @@ const EditorInterface = ({ [collectHasI18n, collection, defaultLocale, entry, selectedLocale], ); - const mobileLocaleEditor = useMemo( - () => - isSmallScreen ? ( -
- -
- ) : null, - [ - collection, - entry, - fields, - fieldsErrors, - handleLocaleChange, - isSmallScreen, - selectedLocale, - submitted, - t, - ], - ); - const editorWithPreview = (
); - const editorSideBySideLocale = ( - <> -
- {editor} - - <>{editorLocale} - -
- {mobileLocaleEditor} - + const editorSideBySideLocale = isSmallScreen ? ( + <>{editorLocale} + ) : ( +
+ {editor} + + <>{editorLocale} + +
); const summary = useMemo(() => selectEntryCollectionTitle(collection, entry), [collection, entry]);