Skip to content

Commit 724e376

Browse files
committed
version switcher - final touches
1 parent 25c04c2 commit 724e376

File tree

1 file changed

+23
-14
lines changed

1 file changed

+23
-14
lines changed
Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,29 @@
1-
<form wire:submit.prevent>
1+
<form
2+
wire:submit.prevent
3+
class="
4+
inline-flex items-center
5+
opacity-60 hover:opacity-100 transition-opacity duration-200
6+
focus-within:outline-2 focus-within:rounded-xs focus-within:outline-offset-2
7+
"
8+
>
29

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">
10+
<x-icons.git-branch class="size-4" />
411

5-
<x-icons.git-branch class="size-4" />
12+
<select
13+
name="version"
14+
wire:model.live="version"
15+
class="
16+
-ml-1 py-0 pr-8
17+
bg-transparent border-0
18+
text-sm whitespace-nowrap
19+
focus:ring-0
20+
"
21+
>
622

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-
>
23+
@foreach($versions as $number => $label)
24+
<option value="{{ $number }}">Version {{ $label }}</option>
25+
@endforeach
1226

13-
@foreach($versions as $number => $label)
14-
<option value="{{ $number }}">Version {{ $label }}</option>
15-
@endforeach
16-
17-
</select>
18-
</div>
27+
</select>
1928

2029
</form>

0 commit comments

Comments
 (0)