Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit 375e675

Browse files
committed
fix: align sliders
1 parent 173b127 commit 375e675

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

vibe/src/routes/SlidersView.vue

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
11
<template>
22
<BlockUI class="flex h-full w-full" :blocked="!connected">
33
<div class="flex h-full w-full flex-col justify-between">
4+
<!-- LYN: Add Slider -->
5+
<div class="border-surface flex gap-2 border-t-4 border-dotted px-4 py-2">
6+
<Button
7+
@click="addSliderWrapper()"
8+
label="Add New Slider"
9+
:disabled="sliderNameToAdd == ''"
10+
>
11+
<template #icon>
12+
<span class="material-symbols-rounded">playlist_add</span>
13+
</template>
14+
</Button>
15+
<FloatLabel class="grow" variant="on">
16+
<InputText
17+
fluid
18+
:disabled="!connected"
19+
v-model="sliderNameToAdd"
20+
ref="addSliderButtonRef"
21+
/>
22+
<label>New slider name</label>
23+
</FloatLabel>
24+
</div>
25+
426
<VirtualScroller
527
:items="sliderArray"
628
:item-size="253"
@@ -20,7 +42,7 @@
2042
>
2143
<!-- LYN: Name -->
2244
<div
23-
class="flex items-center justify-center p-4 text-center font-mono text-2xl"
45+
class="flex h-30 items-center justify-center p-4 text-center font-mono text-2xl"
2446
>
2547
{{ slider.name }}
2648
</div>
@@ -90,28 +112,6 @@
90112
</div>
91113
</template>
92114
</VirtualScroller>
93-
94-
<!-- LYN: Add Slider -->
95-
<div class="border-surface flex gap-2 border-t-4 border-dotted px-4 py-2">
96-
<Button
97-
@click="addSliderWrapper()"
98-
label="Add New Slider"
99-
:disabled="sliderNameToAdd == ''"
100-
>
101-
<template #icon>
102-
<span class="material-symbols-rounded">playlist_add</span>
103-
</template>
104-
</Button>
105-
<FloatLabel class="grow" variant="on">
106-
<InputText
107-
fluid
108-
:disabled="!connected"
109-
v-model="sliderNameToAdd"
110-
ref="addSliderButtonRef"
111-
/>
112-
<label>New slider name</label>
113-
</FloatLabel>
114-
</div>
115115
</div>
116116
</BlockUI>
117117
</template>

0 commit comments

Comments
 (0)