consistent highlight color

This commit is contained in:
vcoppe committed 2026-10-18 09:17:01 +02:00
1 parent 9dd4af98a5
commit b64c192c4f
2 files changed
+7 -5

No files matched your search

@@ -175,14 +175,17 @@
<style lang="postcss"> <style lang="postcss">
@reference "../../../app.css"; @reference "../../../app.css";
/* a selected file, and a selected folder with its chevron: the whole row of its node */ /* the color of the file list: a file and a folder (the whole row of its node, with its
chevron) under the pointer, or selected */
[data-explorer] :global([data-kind='file']:hover),
[data-explorer] :global([data-slot='button']:hover),
[data-explorer] :global([data-kind='file'][aria-selected='true']), [data-explorer] :global([data-kind='file'][aria-selected='true']),
[data-explorer] :global([data-slot='button']:has([aria-selected='true'])) { [data-explorer] :global([data-slot='button']:has([aria-selected='true'])) {
@apply bg-accent; @apply bg-[var(--selection)];
} }
/* the folder where what is dragged would go */ /* the folder where what is dragged would go */
[data-explorer] :global([data-slot='button']:has([data-drop-target])) { [data-explorer] :global([data-slot='button']:has([data-drop-target])) {
@apply ring-1 ring-primary bg-accent/60; @apply ring-1 ring-primary bg-[var(--selection)];
} }
</style> </style>
@@ -136,8 +136,7 @@
path={entry.path} path={entry.path}
name={entry.name} name={entry.name}
kind="file" kind="file"
class="w-full h-7 px-1 text-sm hover:bg-muted {fileIdAt($workspace, entry.path) === class="w-full h-7 px-1 text-sm {fileIdAt($workspace, entry.path) === undefined
undefined
? 'text-muted-foreground' ? 'text-muted-foreground'
: ''}" : ''}"
style="scroll-margin-top: {level.top}px" style="scroll-margin-top: {level.top}px"