unify detailpanel and documentviewer

This commit is contained in:
2025-11-11 14:45:19 +01:00
parent 10f9f3be2f
commit a8589a864a
8 changed files with 139 additions and 480 deletions
@@ -1,5 +1,5 @@
import React from 'react';
import DetailPanel from '../../detail/DetailPanel';
import DocumentViewerPanel from '../../preview/DocumentViewerPanel';
import SelectionFloatingActions from '../SelectionFloatingActions';
import createWorkspaceSurfaceConfig from '../workspaceHeader';
import DocumentsPanel from './DocumentsPanel';
@@ -91,7 +91,14 @@ const createDocumentsSurface = ({
: null;
const sidebarToggle = renderSidebarToggle ? renderSidebarToggle() : null;
const detail = detailOpen && detailProps ? <DetailPanel {...detailProps} /> : null;
const detail = detailOpen && detailProps
? (
<DocumentViewerPanel
variant="sidebar"
{...detailProps}
/>
)
: null;
return createWorkspaceSurfaceConfig({
key: 'documents',