Skip to content

Commit 228db06

Browse files
committed
Fix cursor inconsistency
1 parent ea403f5 commit 228db06

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

web/src/routes/Sidebar.svelte

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
</script>
6666

6767
{#snippet renderFileNode(value: FileDetails)}
68-
<div class="file flex cursor-pointer items-center justify-between px-2 py-1 text-sm">
68+
<div class="file flex items-center justify-between px-2 py-1 text-sm">
6969
<span
7070
class="{getFileStatusProps(value.status).iconClasses} me-1 flex size-4 shrink-0 items-center justify-center"
7171
aria-label={getFileStatusProps(value.status).title}
@@ -84,7 +84,7 @@
8484

8585
{#snippet renderFolderNode(name: string, collapsed: boolean)}
8686
{@const folderIcon = collapsed ? "octicon--file-directory-fill-16" : "octicon--file-directory-open-fill-16"}
87-
<div class="flex cursor-pointer items-center justify-between px-2 py-1 text-sm">
87+
<div class="flex items-center justify-between px-2 py-1 text-sm">
8888
<span class="me-1 iconify size-4 shrink-0 text-em-med {folderIcon}"></span>
8989
<span class="grow overflow-hidden break-all">{name}</span>
9090
{#if collapsed}
@@ -127,7 +127,7 @@
127127
<div
128128
role="button"
129129
tabindex="0"
130-
class="btn-ghost focus:ring-2 focus:ring-primary/50 focus:outline-none focus:ring-inset"
130+
class="cursor-pointer btn-ghost focus:ring-2 focus:ring-primary/50 focus:outline-none focus:ring-inset"
131131
style="padding-left: {node.depth}rem;"
132132
{...nodeProps(node.data, collapsed, toggleCollapse)}
133133
>
@@ -167,6 +167,7 @@
167167
background-color: var(--color-em-disabled);
168168
display: block;
169169
z-index: 1;
170+
cursor: pointer;
170171
}
171172
[data-selected] .file {
172173
position: relative;

0 commit comments

Comments
 (0)