diff --git a/src/ui/src/components/shared/SharedCollapsible.vue b/src/ui/src/components/shared/SharedCollapsible.vue index 88952f16..6d85fdd3 100644 --- a/src/ui/src/components/shared/SharedCollapsible.vue +++ b/src/ui/src/components/shared/SharedCollapsible.vue @@ -1,11 +1,17 @@ @@ -50,7 +72,7 @@ summary { cursor: pointer; } -summary:before { +details summary:before { content: ""; border-width: 6px; border-style: solid; @@ -64,6 +86,17 @@ summary:before { transition: 0.3s transform ease; } +.SharedCollapsible--customMarker summary { + padding-left: unset; + display: grid; + grid-template-columns: auto 1fr; + gap: 4px; + align-items: center; +} +.SharedCollapsible--customMarker summary:before { + content: none; +} + summary:focus-visible:before { border-color: transparent transparent transparent var(--primaryTextColor); } diff --git a/src/ui/src/components/shared/SharedSourceFilesTree/ShareSourceFilesTree.vue b/src/ui/src/components/shared/SharedSourceFilesTree/ShareSourceFilesTree.vue index cf695e5b..9f81a673 100644 --- a/src/ui/src/components/shared/SharedSourceFilesTree/ShareSourceFilesTree.vue +++ b/src/ui/src/components/shared/SharedSourceFilesTree/ShareSourceFilesTree.vue @@ -36,5 +36,6 @@ const sourceFilesEntries = computed(() => .SharedSourceFilesTree { display: flex; flex-direction: column; + gap: 2px; } diff --git a/src/ui/src/components/shared/SharedSourceFilesTree/ShareSourceFilesTreeNode.vue b/src/ui/src/components/shared/SharedSourceFilesTree/ShareSourceFilesTreeNode.vue index e52b9313..6fb625bb 100644 --- a/src/ui/src/components/shared/SharedSourceFilesTree/ShareSourceFilesTreeNode.vue +++ b/src/ui/src/components/shared/SharedSourceFilesTree/ShareSourceFilesTreeNode.vue @@ -18,28 +18,21 @@ defineEmits({ select: (path: string[]) => Array.isArray(path), }); -const isPathActive = computed(() => - props.pathActive - .join("/") - .startsWith([...props.path, props.root].join("/")), +const currentPathString = computed(() => [...props.path, props.root].join("/")); + +const isPathActive = computed( + () => props.pathActive.join("/") === currentPathString.value, ); const isDirectory = computed(() => typeof props.content !== "string");