refactor: create separation between editor wrapper and contents

This commit is contained in:
Carlos Valente
2025-12-20 13:21:40 +01:00
committed by Carlos Valente
parent 1d7ee163a0
commit 972f9e35fd
14 changed files with 122 additions and 144 deletions
@@ -1,5 +1,3 @@
@use '../../views/editor/EditorMixin' as editor;
.rundownExport {
height: 100%;
flex: 1 1 auto; /* flex-grow: 1, flex-shrink: 1, flex-basis: auto */
@@ -23,7 +21,7 @@
}
.list {
@include editor.panel;
display: flex;
height: inherit;
padding-inline: 0;
box-shadow: $box-shadow-right;
@@ -1,7 +1,7 @@
import { memo } from 'react';
import { useSessionStorage } from '@mantine/hooks';
import { CornerExtract } from '../../common/components/editor-utils/EditorUtils';
import * as Editor from '../../common/components/editor-utils/EditorUtils';
import ErrorBoundary from '../../common/components/error-boundary/ErrorBoundary';
import ViewNavigationMenu from '../../common/components/navigation-menu/ViewNavigationMenu';
import ProtectRoute from '../../common/components/protect-route/ProtectRoute';
@@ -58,14 +58,14 @@ function RundownExport() {
<FinderPlacement />
{isExtracted && <ViewNavigationMenu suppressSettings isNavigationLocked={getIsNavigationLocked()} />}
<div className={style.rundown}>
<div className={style.list}>
<Editor.Panel className={style.list}>
<ErrorBoundary>
{!isExtracted && <CornerExtract onClick={(event) => handleLinks('rundown', event)} />}
{!isExtracted && <Editor.CornerExtract onClick={(event) => handleLinks('rundown', event)} />}
<RundownContextMenu>
<RundownWrapper />
</RundownContextMenu>
</ErrorBoundary>
</div>
</Editor.Panel>
{!hideSideBar && (
<div className={style.side}>
<ErrorBoundary>