From 928cc72491976fed5b96d53730d2d39fad948980 Mon Sep 17 00:00:00 2001 From: Sandro Date: Tue, 27 Oct 2026 07:21:31 +0100 Subject: [PATCH] feat(workspace): enhance todo view switcher and add note-level collapsible cards in folder_note mode --- .../src/features/workspace/WorkspaceView.tsx | 134 +++++++++++------- 1 file changed, 81 insertions(+), 53 deletions(-) diff --git a/frontend/src/features/workspace/WorkspaceView.tsx b/frontend/src/features/workspace/WorkspaceView.tsx index 73b183a..db89a42 100644 --- a/frontend/src/features/workspace/WorkspaceView.tsx +++ b/frontend/src/features/workspace/WorkspaceView.tsx @@ -1240,9 +1240,12 @@ export const WorkspaceView: React.FC = ({

-
+
{/* View Grouping Selector */} -
+
+ + Ansicht: +
-
- {docItems.map((item) => ( -
-
+ {!isDocCollapsed && ( +
+ {docItems.map((item) => ( +
+
+ + + handleJumpToDocBlock(item.doc.id, item.blockId) + } + className={`truncate flex-1 ${ + item.checked + ? 'line-through text-faint' + : 'text-main font-medium group-hover:text-accent' + }`} + > + {item.content} + +
- handleJumpToDocBlock(item.doc.id, item.blockId) } - className={`truncate flex-1 ${ - item.checked - ? 'line-through text-faint' - : 'text-main font-medium group-hover:text-accent' - }`} + className="text-faint hover:text-accent opacity-0 group-hover:opacity-100 transition-opacity p-1" + title="Zu dieser Zeile springen" > - {item.content} - + +
- -
- ))} -
+ ))} +
+ )}
); })}