Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/src/lib/components/data-layers/LayerScrollArea.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@

<ScrollArea.Root type="hover" class="relative mb-3 flex max-h-[80vh] flex-col overflow-hidden py-3">
<ScrollArea.Viewport class="h-full w-full">
<div class="flex flex-col gap-5 p-[15px]">
<div class="flex flex-col gap-5 p-4">
{@render layers()}
</div>
</ScrollArea.Viewport>

<ScrollArea.Scrollbar
orientation="vertical"
class="m-1 flex w-[3px] touch-none bg-black/5 transition-colors duration-200 select-none hover:bg-black/10"
class="m-1 flex w-1 touch-none bg-black/5 transition-colors duration-200 select-none hover:bg-black/10"
>
<ScrollArea.Thumb class="relative flex-1 rounded-[10px] bg-[var(--bg-alt)]" />
<ScrollArea.Thumb class="relative flex-1 rounded-sm bg-(--bg-alt)" />
</ScrollArea.Scrollbar>
</ScrollArea.Root>
4 changes: 2 additions & 2 deletions app/src/lib/components/data-layers/LayerSwitch.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
<span>{label}</span>
<Switch.Root
bind:checked
class="box-border flex h-[25px] w-[55px] cursor-pointer items-center rounded bg-[var(--bg-alt)] p-[3px] transition-colors duration-200 focus-visible:outline focus-visible:outline-white data-[state=checked]:bg-[var(--primary)]"
class="box-border flex h-6 w-14 cursor-pointer items-center rounded bg-(--bg-alt) p-1 transition-colors duration-200 focus-visible:outline focus-visible:outline-white data-[state=checked]:bg-(--primary)"
>
<Switch.Thumb
class="block h-full w-[25px] rounded-sm bg-white transition-transform duration-200 ease-in-out data-[state=checked]:translate-x-[24px]"
class="block h-full w-6 rounded-sm bg-white transition-transform duration-200 ease-in-out data-[state=checked]:translate-x-6"
/>
</Switch.Root>
</Label.Root>
2 changes: 1 addition & 1 deletion app/src/lib/components/data-layers/Separator.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

<Separator.Root
decorative={true}
class="h-[1px] w-[calc(100%-30px)] self-center bg-[var(--text)] opacity-10"
class="h-px w-[calc(100%-30px)] self-center bg-(--text) opacity-10"
Comment thread
dastarruer marked this conversation as resolved.
Outdated
/>
Loading