Skip to content

Commit 758a977

Browse files
committed
fix: button themes
1 parent 66b5511 commit 758a977

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

src/lib/components/LightSwitch.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
}
1616
</script>
1717

18-
<div class="flex items-center gap-2">
19-
<span class="text-xs text-surface-600-400 hidden sm:block">
18+
<div class="flex items-center gap-2.5 min-h-10 py-1">
19+
<span class="text-xs text-surface-600-400 hidden sm:block shrink-0">
2020
{checked ? 'Dark' : 'Light'}
2121
</span>
22-
<Switch {checked} {onCheckedChange}>
22+
<Switch class="shrink-0" {checked} {onCheckedChange}>
2323
<Switch.Control>
2424
<Switch.Thumb />
2525
</Switch.Control>

src/lib/components/ThemePicker.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<script lang="ts">
2+
import { Menu, Portal } from '@skeletonlabs/skeleton-svelte';
3+
24
const themes = [
35
{ value: 'lucid', label: 'Lucid' },
46
{ value: 'cerberus', label: 'Cerberus' },
@@ -31,7 +33,7 @@
3133
</script>
3234

3335
<select
34-
class="select text-sm preset-tonal-surface rounded-base px-2 py-1 cursor-pointer"
36+
class="btn btn-sm preset-tonal-surface"
3537
value={selected}
3638
onchange={onChange}
3739
>

src/routes/+layout.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
<AppBar.Lead>
7070
<a
7171
href="{base}/"
72-
class="flex items-center gap-2 rounded-container preset-tonal-surface hover:preset-filled-surface-100-900 px-1 py-0.5 -ml-1 shrink-0"
72+
class="flex items-center gap-2 py-1 -ml-1 shrink-0 min-h-10"
7373
>
7474
<img
7575
src="{base}/lucid_logo.svg"
@@ -83,7 +83,7 @@
8383
</AppBar.Lead>
8484
<AppBar.Headline />
8585
<AppBar.Trail>
86-
<div class="flex items-center gap-3">
86+
<div class="flex items-center gap-2 sm:gap-3">
8787
<ThemePicker />
8888
<LightSwitch />
8989
</div>

0 commit comments

Comments
 (0)