Просмотр исходного кода

Merge pull request #15696 from overleaf/td-ide-page-show-editor-loading

Make editor loading panel appear in React IDE page

GitOrigin-RevId: b28573ece3e0331a8a82d56df55896bec8b607d9
Tim Down 2 лет назад
Родитель
Сommit
c8e68e8c96

+ 1 - 1
services/web/frontend/js/features/ide-react/components/editor/editor-pane.tsx

@@ -40,6 +40,7 @@ export function EditorPane({ shouldPersistLayout, show }: EditorPaneProps) {
           flexDirection: 'column',
         }}
       >
+        <SourceEditor />
         {(!editor.sharejs_doc || editor.opening) &&
         !editor.error_state &&
         !!editor.open_doc_id ? (
@@ -50,7 +51,6 @@ export function EditorPane({ shouldPersistLayout, show }: EditorPaneProps) {
             </span>
           </div>
         ) : null}
-        <SourceEditor />
       </Panel>
       {editor.showSymbolPalette ? (
         <>