Skip to content

Commit 5a53891

Browse files
committed
version switcher styling
1 parent 0bd40e5 commit 5a53891

File tree

2 files changed

+56
-6
lines changed

2 files changed

+56
-6
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<svg
2+
{{ $attributes }}
3+
xmlns="http://www.w3.org/2000/svg"
4+
fill="none"
5+
viewBox="0 0 24 24"
6+
>
7+
<circle
8+
cx="4"
9+
cy="7"
10+
r="2"
11+
stroke="#000"
12+
stroke-linecap="round"
13+
stroke-linejoin="round"
14+
stroke-width="2"
15+
/>
16+
<circle
17+
cx="20"
18+
cy="7"
19+
r="2"
20+
stroke="#000"
21+
stroke-linecap="round"
22+
stroke-linejoin="round"
23+
stroke-width="2"
24+
/>
25+
<circle
26+
cx="20"
27+
cy="17"
28+
r="2"
29+
stroke="#000"
30+
stroke-linecap="round"
31+
stroke-linejoin="round"
32+
stroke-width="2"
33+
/>
34+
<path
35+
stroke="#000"
36+
stroke-linecap="round"
37+
stroke-linejoin="round"
38+
stroke-width="2"
39+
d="M18 7H6M7 7v0a3 3 0 0 1 3 3v5a2 2 0 0 0 2 2h6"
40+
/>
41+
</svg>
Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
1-
<form wire:submit="switch">
1+
<form wire:submit.prevent>
22

3-
<select wire:model.live="version" name="version">
3+
<div class="inline-flex items-center opacity-60 hover:opacity-100 transition-opacity duration-200 focus-within:outline-2 focus-within:rounded-xs focus-within:outline-offset-2">
44

5-
@foreach($versions as $number => $label)
6-
<option value="{{ $number }}">{{ $label }}</option>
7-
@endforeach
5+
<x-icons.git-branch class="size-4" />
86

9-
</select>
7+
<select
8+
name="version"
9+
wire:model.live="version"
10+
class="text-sm -ml-1 py-0 pr-8 bg-transparent border-0 whitespace-nowrap focus:ring-0"
11+
>
12+
13+
@foreach($versions as $number => $label)
14+
<option value="{{ $number }}">Version {{ $label }}</option>
15+
@endforeach
16+
17+
</select>
18+
</div>
1019

1120
</form>

0 commit comments

Comments
 (0)