Skip to content

Commit 99e8ae8

Browse files
committed
feat: enhance success alert visibility and layout in GlobalSettings component
1 parent 23b6d7f commit 99e8ae8

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

services/frontend/src/views/GlobalSettings.vue

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -190,28 +190,30 @@ async function handleSubmit(event: Event) {
190190
<template>
191191
<DashboardLayout :title="t('globalSettings.title')">
192192
<div class="hidden space-y-6 pb-16 md:block">
193-
<Alert v-if="showSuccessAlert" variant="default" class="mb-4 border-green-500 bg-green-50 text-green-700 relative">
194-
<CheckCircle2Icon class="h-5 w-5 text-green-600" />
195-
<AlertTitle class="font-semibold text-green-800">{{ t('globalSettings.alerts.successTitle') }}</AlertTitle>
196-
<AlertDescription>
197-
{{ successAlertMessage }}
198-
</AlertDescription>
199-
<Button
200-
variant="ghost"
201-
size="sm"
202-
class="absolute top-2 right-2 p-1 h-auto text-green-700 hover:bg-green-100"
203-
@click="showSuccessAlert = false"
204-
aria-label="Dismiss success alert"
205-
>
206-
<XIcon class="h-4 w-4" />
207-
</Button>
208-
</Alert>
209193

210194
<div class="flex flex-col space-y-8 lg:flex-row lg:space-x-12 lg:space-y-0">
211195
<aside class="-mx-4 lg:w-1/5">
212196
<GlobalSettingsSidebarNav :groups="settingGroups" />
213197
</aside>
214-
<div class="flex-1 lg:max-w-2xl">
198+
<div class="flex-1 lg:max-w-3xl">
199+
200+
<Alert v-if="showSuccessAlert" variant="default" class="mb-8 border-green-500 bg-green-50 text-green-700 relative">
201+
<CheckCircle2Icon class="h-5 w-5 text-green-600" />
202+
<AlertTitle class="font-semibold text-green-800">{{ t('globalSettings.alerts.successTitle') }}</AlertTitle>
203+
<AlertDescription>
204+
{{ successAlertMessage }}
205+
</AlertDescription>
206+
<Button
207+
variant="ghost"
208+
size="sm"
209+
class="absolute top-2 right-2 p-1 h-auto text-green-700 hover:bg-green-100"
210+
@click="showSuccessAlert = false"
211+
aria-label="Dismiss success alert"
212+
>
213+
<XIcon class="h-4 w-4" />
214+
</Button>
215+
</Alert>
216+
215217
<div v-if="isLoading" class="text-muted-foreground">Loading settings...</div>
216218
<div v-else-if="error" class="text-red-500">Error loading settings: {{ error }}</div>
217219
<div v-else-if="selectedGroup" class="space-y-6">

0 commit comments

Comments
 (0)