This commit is contained in:
2025-11-11 15:23:07 +01:00
parent a8589a864a
commit 5333de0e89
5 changed files with 137 additions and 58 deletions
+11 -6
View File
@@ -83,12 +83,17 @@ const createDesktopSurface = ({
const sidebarToggle = renderSidebarToggle ? renderSidebarToggle() : null;
const detail = detailOpen && detailProps
? (
<DocumentViewerPanel
variant="sidebar"
{...detailProps}
/>
)
? (() => {
const { onClose, onOpenPreview, ...restDetailProps } = detailProps;
return (
<DocumentViewerPanel
variant="sidebar"
onCollapsePanel={onClose}
onMaximizePanel={onOpenPreview}
{...restDetailProps}
/>
);
})()
: null;
const surfaceConfig = createWorkspaceSurfaceConfig({
key: 'workspace',