Skip to content

Commit 1788a69

Browse files
committed
fix: truncating title position
1 parent 4b880ff commit 1788a69

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

website-v3/src/layouts/Header.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const { owner, repository, config } = context.get();
1818
<div class="h-16 px-4 lg:px-8 mx-4 lg:mx-0 flex items-center">
1919
<Link
2020
href="/"
21-
className="transition-opacity flex-grow hover:opacity-75 flex items-center gap-3 truncate"
21+
className="transition-opacity hover:opacity-75 flex-1 inline-flex items-center gap-3 truncate"
2222
>
2323
{
2424
!!config.logo && (
@@ -40,7 +40,7 @@ const { owner, repository, config } = context.get();
4040
}
4141
{
4242
!!config.automaticallyDisplayName && (
43-
<span class="text-xl font-bold">{config.name || `${owner}/${repository}`}</span>
43+
<span class="text-xl font-bold truncate">{config.name || `${owner}/${repository}`}</span>
4444
)
4545
}
4646
</Link>
@@ -51,7 +51,7 @@ const { owner, repository, config } = context.get();
5151
>
5252
{!!config.docsearch && <SearchBar />}
5353
</div>
54-
<div class="flex-shrink-0 flex gap-6 items-center justify-end">
54+
<div class="flex-1 flex-shrink-0 flex gap-6 items-center justify-end">
5555
{
5656
!!config.docsearch && (
5757
<button class="h-6 w-6 lg:hidden" data-docsearch-override>

0 commit comments

Comments
 (0)