Skip to content

Commit c6ad456

Browse files
committed
Fix selected indicator breaking sidebar checkbox, improve file/dir
focused style
1 parent 3f00ab5 commit c6ad456

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

web/src/routes/Sidebar.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
<div class="h-100">
7878
{#snippet fileSnippet(value: FileDetails)}
7979
<div
80-
class="file flex cursor-pointer items-center justify-between btn-ghost px-2 py-1 text-sm focus:ring-2 focus:ring-primary focus:outline-none focus:ring-inset"
80+
class="file flex cursor-pointer items-center justify-between btn-ghost px-2 py-1 text-sm focus:ring-2 focus:ring-primary/50 focus:outline-none focus:ring-inset"
8181
onclick={(e) => scrollToFileClick(e, value.index)}
8282
{@attach focusFileDoubleClick(value)}
8383
onkeydown={(e) => e.key === "Enter" && viewer.scrollToFile(value.index)}
@@ -108,7 +108,7 @@
108108
{@render fileSnippet(node.data.data as FileDetails)}
109109
{:else}
110110
<div
111-
class="flex cursor-pointer items-center justify-between btn-ghost px-2 py-1 text-sm focus:ring-2 focus:ring-primary focus:outline-none focus:ring-inset"
111+
class="flex cursor-pointer items-center justify-between btn-ghost px-2 py-1 text-sm focus:ring-2 focus:ring-primary/50 focus:outline-none focus:ring-inset"
112112
onclick={toggleCollapse}
113113
onkeydown={(e) => e.key === "Enter" && toggleCollapse()}
114114
role="button"
@@ -161,9 +161,9 @@
161161
position: absolute;
162162
top: 0;
163163
left: 0;
164-
width: 100%;
164+
width: 4px;
165165
height: 100%;
166-
box-shadow: inset 4px 0 0 0 var(--color-primary);
166+
background-color: var(--color-primary);
167167
}
168168
}
169169
</style>

0 commit comments

Comments
 (0)