Skip to content

Commit f29abcf

Browse files
committed
fix: wrap boolean switch in a div for consistent layout in settings form
1 parent f46ff4e commit f29abcf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

services/frontend/src/views/GlobalSettings.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@ async function handleSubmit(event: Event) {
234234
<div v-for="setting in selectedGroup.settings" :key="setting.key" class="space-y-2">
235235
<Label :for="`setting-${setting.key}`">{{ setting.description || setting.key }}</Label>
236236

237-
238237
<!-- String Input (text or password) -->
239238
<Input
240239
v-if="setting.type === 'string'"
@@ -254,11 +253,12 @@ async function handleSubmit(event: Event) {
254253
/>
255254

256255
<!-- Boolean Toggle Switch -->
257-
<Switch
258-
v-else-if="setting.type === 'boolean'"
259-
:id="`setting-${setting.key}`"
260-
v-model:checked="formValues[setting.key]"
261-
/>
256+
<div v-else-if="setting.type === 'boolean'">
257+
<Switch
258+
:id="`setting-${setting.key}`"
259+
v-model:checked="formValues[setting.key]"
260+
/>
261+
</div>
262262

263263
<p v-if="setting.is_encrypted" class="text-xs text-muted-foreground">This value is encrypted.</p>
264264
</div>

0 commit comments

Comments
 (0)