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

Hide PDF pane while resizing (#16124)

GitOrigin-RevId: c2003e91b5b5a3cf6af073329aff6618e060018c
Alf Eaton 2 лет назад
Родитель
Сommit
da397e17d4

+ 7 - 1
services/web/frontend/js/features/ide-react/components/editor-and-pdf.tsx

@@ -37,7 +37,13 @@ export const EditorAndPdf: FC<{
     view === 'editor' || view === 'file' || pdfLayout === 'sideBySide'
 
   return (
-    <PanelGroup autoSaveId="ide-editor-pdf-layout" direction="horizontal">
+    <PanelGroup
+      autoSaveId="ide-editor-pdf-layout"
+      direction="horizontal"
+      className={classNames({
+        'ide-panel-group-resizing': resizing,
+      })}
+    >
       {/* main */}
       {editorIsOpen && (
         <>