From f081d0a85227d16fd7f5f249d3283dbd5873b79c Mon Sep 17 00:00:00 2001 From: Aleix Soler Date: Thu, 19 Mar 2026 19:12:06 +0100 Subject: [PATCH] feat(GroupedStatusView): adopt Obsidian native tree-item UI in StatusGroup and FileList --- .../GroupedStatusView/components/FileList.tsx | 24 +++++++++---------- .../components/StatusGroup.tsx | 24 ++++++++++--------- 2 files changed, 25 insertions(+), 23 deletions(-) diff --git a/components/GroupedStatusView/components/FileList.tsx b/components/GroupedStatusView/components/FileList.tsx index 3acf883..8ca8b47 100644 --- a/components/GroupedStatusView/components/FileList.tsx +++ b/components/GroupedStatusView/components/FileList.tsx @@ -1,7 +1,5 @@ import React, { useCallback } from "react"; import { FileItem } from "../GroupedStatusView"; -import { SelectableListItem } from "../../atoms/SelectableListItem"; - interface FileListProps { files: FileItem[]; groupKey: string; @@ -48,21 +46,23 @@ export const FileList = ({
{visibleFiles.map((file) => ( - handleFileClick(file)} - className="grouped-status-file-item" title={file.path} > -
- - {file.name} - - - {file.path} - +
+
+
+ {file.name} +
+
+ {file.path} +
+
- +
))} {hasMoreItems && ( diff --git a/components/GroupedStatusView/components/StatusGroup.tsx b/components/GroupedStatusView/components/StatusGroup.tsx index e7cc35c..01e18f1 100644 --- a/components/GroupedStatusView/components/StatusGroup.tsx +++ b/components/GroupedStatusView/components/StatusGroup.tsx @@ -46,12 +46,12 @@ export const StatusGroup = ({ }, [onToggle]); return ( -
+
-
+
{isExpanded && ( - +
+ +
)}
);