diff --git a/frontend/src/components/react/admin/Editor.tsx b/frontend/src/components/react/admin/Editor.tsx index 7ce6189..cc6ad79 100644 --- a/frontend/src/components/react/admin/Editor.tsx +++ b/frontend/src/components/react/admin/Editor.tsx @@ -92,9 +92,7 @@ export default function Editor({ editSlug }: Props) { const [showModal, setShowModal] = useState(false); const [showPreview, setShowPreview] = useState(false); const [mobileView, setMobileView] = useState<'edit' | 'preview'>('edit'); - const [vimEnabled, setVimEnabled] = useState(() => - typeof window !== 'undefined' && window.innerWidth > 768 - ); + const [vimEnabled, setVimEnabled] = useState(false); const [showAutocomplete, setShowAutocomplete] = useState(false); const [autocompleteAssets, setAutocompleteAssets] = useState([]); const [autocompletePos, setAutocompletePos] = useState({ top: 0, left: 0 }); @@ -120,7 +118,7 @@ export default function Editor({ editSlug }: Props) { const state = EditorState.create({ doc: '', extensions: [ - vimCompartment.of(window.innerWidth > 768 ? vim() : []), + vimCompartment.of([]), keymap.of([...defaultKeymap, ...searchKeymap, indentWithTab]), search(), closeBrackets(), diff --git a/frontend/src/pages/index.astro b/frontend/src/pages/index.astro index 1f27967..90be3c1 100644 --- a/frontend/src/pages/index.astro +++ b/frontend/src/pages/index.astro @@ -108,13 +108,13 @@ const isAdmin = Astro.cookies.get('admin_session')?.value === '1'; {posts.length === 0 && !error && (
-
Notice
+
Nothing here yet

- The exhibition is currently being arranged. + No posts to show.

-

Please return shortly.

+

Check back soon.

{isAdmin && ( - Hang the first work + Create the first post )}
)}