This commit is contained in:
2025-10-15 16:16:37 +02:00
parent 5b5c1c4c0b
commit abee49a335
2 changed files with 11 additions and 10 deletions
+10 -9
View File
@@ -859,9 +859,6 @@ const DetailPanel = ({
return ( return (
<aside className="detail-panel column"> <aside className="detail-panel column">
<div className="column-header">
<h2>Details</h2>
</div>
<div className="column-body scrollable"> <div className="column-body scrollable">
{selectedCount <= 1 ? renderSingle() : renderBulk()} {selectedCount <= 1 ? renderSingle() : renderBulk()}
</div> </div>
@@ -2105,12 +2102,16 @@ const AppLayout = () => {
const handleDocumentDragStart = useCallback( const handleDocumentDragStart = useCallback(
(event, documentId) => { (event, documentOrId) => {
const selection = selectedDocumentIds.includes(documentId) const documentId = typeof documentOrId === 'string' ? documentOrId : documentOrId?.id;
? selectedDocumentIds if (!documentId) {
: [documentId]; return;
}
if (!selectedDocumentIds.includes(documentId)) { const isAlreadySelected = selectedDocumentIds.includes(documentId);
const selection = isAlreadySelected ? [...selectedDocumentIds] : [documentId];
if (!isAlreadySelected) {
applySelection([documentId], { applySelection([documentId], {
anchor: documentId, anchor: documentId,
interactedIds: [documentId], interactedIds: [documentId],
@@ -3509,7 +3510,7 @@ const AppLayout = () => {
setLoading(true); setLoading(true);
try { try {
if (unique.length === 1) { if (unique.length === 1) {
await api.patch(`/documents/${unique[0]}/folder`, { folder_id: target }); await api.patch(`/documents/${unique[0].id}/folder`, { folder_id: target });
} else { } else {
await api.post('/documents/bulk/move', { await api.post('/documents/bulk/move', {
document_ids: unique, document_ids: unique,
+1 -1
View File
@@ -1144,7 +1144,7 @@ button.icon-button.ghost:hover:not([disabled]) {
.preview-stack--stacked { .preview-stack--stacked {
width: 100%; width: 100%;
min-height: 420px; min-height: 320px;
flex-shrink: 0; flex-shrink: 0;
} }