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
@@ -92,12 +92,17 @@ const createDocumentsSurface = ({
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;
return createWorkspaceSurfaceConfig({