Skip to content

Commit 702960c

Browse files
committed
fix: improve layout flexbox and hydration warnings
Resolves layout inconsistencies by converting main content areas to proper flexbox containers with column direction. This ensures child components expand correctly to fill available space. Removes extraneous whitespace in login alert message for cleaner text rendering. Suppresses hydration warning on hero illustration image to prevent console errors during client-side hydration when server and client rendered attributes differ.
1 parent 42a1976 commit 702960c

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

app/components/home/Hero.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ const { title, description, github, twitter } = useAppConfig()
108108
lg:w-[420px]
109109
"
110110
aria-label="Link sharing illustration"
111+
suppressHydrationWarning
111112
/>
112113
</div>
113114
</div>

app/components/login/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ async function handleSubmit() {
7070
<AlertTitle>{{ $t('login.tips') }}</AlertTitle>
7171
<AlertDescription>
7272
{{ $t('login.preview_token') }}
73-
<code class="font-mono text-green-500">SinkCool</code> .
73+
<code class="font-mono text-green-500">SinkCool</code>
7474
</AlertDescription>
7575
</Alert>
7676

app/layouts/default.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ const { stats } = useGithubStats()
119119
</header>
120120

121121
<!-- Main Content -->
122-
<main class="flex-1 pt-20">
122+
<main class="flex flex-1 flex-col pt-20">
123123
<slot />
124124
</main>
125125

app/pages/dashboard/login.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ definePageMeta({
55
</script>
66

77
<template>
8-
<main class="flex h-full items-center justify-center">
8+
<div class="flex flex-1 items-center justify-center">
99
<Login />
10-
</main>
10+
</div>
1111
</template>

0 commit comments

Comments
 (0)