mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-12 07:55:11 +08:00
style: 优化通知弹窗滚动区域高度样式
将DiplomaticNotifications、EnemyAlertNotifications与QueueNotifications中的ScrollArea高度由固定h-96/h-[420px]调整为h-auto max-h-96,提升内容自适应性,避免内容较少时出现多余空白,增强界面美观与一致性。
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
{{ t('diplomacy.markAllRead') }}
|
{{ t('diplomacy.markAllRead') }}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
<ScrollArea class="h-96">
|
<ScrollArea class="h-auto max-h-96">
|
||||||
<Empty v-if="allNotifications.length === 0" class="border-0">
|
<Empty v-if="allNotifications.length === 0" class="border-0">
|
||||||
<EmptyContent>
|
<EmptyContent>
|
||||||
<ScrollText class="h-10 w-10 text-muted-foreground" />
|
<ScrollText class="h-10 w-10 text-muted-foreground" />
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
{{ t('enemyAlert.markAllRead') }}
|
{{ t('enemyAlert.markAllRead') }}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
<ScrollArea class="h-96">
|
<ScrollArea class="h-auto max-h-96">
|
||||||
<Empty v-if="activeAlerts.length === 0" class="border-0">
|
<Empty v-if="activeAlerts.length === 0" class="border-0">
|
||||||
<EmptyContent>
|
<EmptyContent>
|
||||||
<Shield class="h-10 w-10 text-muted-foreground" />
|
<Shield class="h-10 w-10 text-muted-foreground" />
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
</TabsTrigger>
|
</TabsTrigger>
|
||||||
</TabsList>
|
</TabsList>
|
||||||
|
|
||||||
<ScrollArea class="h-[420px]">
|
<ScrollArea class="h-auto max-h-96">
|
||||||
<TabsContent v-for="tab in tabConfig" :key="tab.value" :value="tab.value" class="mt-0">
|
<TabsContent v-for="tab in tabConfig" :key="tab.value" :value="tab.value" class="mt-0">
|
||||||
<Empty v-if="tab.items.length === 0" class="border-0">
|
<Empty v-if="tab.items.length === 0" class="border-0">
|
||||||
<EmptyContent>
|
<EmptyContent>
|
||||||
|
|||||||
Reference in New Issue
Block a user