Skip to content

Commit 1f5033b

Browse files
committed
feat(Versions, config): enhance layout and update styles for better UI consistency
- Adjusted padding and overflow properties in Versions and config components. - Improved positioning of update indicators for frontend and backend versions.
1 parent a915800 commit 1f5033b

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

components/Versions.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -284,20 +284,20 @@ watch(
284284
</script>
285285

286286
<template>
287-
<div v-if="!collapsed" class="mx-2 grid grid-cols-1 gap-2 md:mx-0">
287+
<div v-if="!collapsed" class="mx-2 grid grid-cols-1 gap-2 pt-1 md:mx-0">
288288
<!-- Frontend Version -->
289289
<kbd
290290
ref="frontendReference"
291291
role="button"
292-
class="relative kbd w-full cursor-pointer py-2"
292+
class="relative kbd w-full cursor-pointer overflow-visible py-2"
293293
@click="handleFrontendUpgrade"
294294
@mouseenter="onFrontendMouseEnter"
295295
@mouseleave="onFrontendMouseLeave"
296296
>
297297
<!-- Update indicator -->
298298
<span
299299
v-if="frontendRelease?.isUpdateAvailable"
300-
class="absolute -top-1 -right-1 inline-grid *:[grid-area:1/1]"
300+
class="absolute top-0 right-0 inline-grid translate-x-1/2 -translate-y-1/2 *:[grid-area:1/1]"
301301
>
302302
<span class="status animate-ping status-info" />
303303
<div class="status status-info" />
@@ -336,15 +336,15 @@ watch(
336336
<kbd
337337
ref="backendReference"
338338
role="button"
339-
class="relative kbd w-full cursor-pointer py-2"
339+
class="relative kbd w-full cursor-pointer overflow-visible py-2"
340340
@click="handleBackendUpgrade"
341341
@mouseenter="onBackendMouseEnter"
342342
@mouseleave="onBackendMouseLeave"
343343
>
344344
<!-- Update indicator -->
345345
<span
346346
v-if="backendRelease?.isUpdateAvailable"
347-
class="absolute -top-1 -right-1 inline-grid *:[grid-area:1/1]"
347+
class="absolute top-0 right-0 inline-grid translate-x-1/2 -translate-y-1/2 *:[grid-area:1/1]"
348348
>
349349
<span class="status animate-ping status-info" />
350350
<div class="status status-info" />

pages/config.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ const isLoading = computed(
154154
</script>
155155

156156
<template>
157-
<div class="mx-auto flex h-full max-w-3xl flex-col gap-4 overflow-y-auto">
157+
<div
158+
class="mx-auto flex h-full max-w-3xl flex-col gap-4 overflow-y-auto px-2 pb-2"
159+
>
158160
<!-- Loading State -->
159161
<div v-if="isLoading" class="flex h-64 items-center justify-center">
160162
<span class="loading loading-lg loading-spinner" />

0 commit comments

Comments
 (0)