Skip to content

Commit e31a20d

Browse files
committed
moved copy button to reduce excessive white space
1 parent 26f80f9 commit e31a20d

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

src/components/overrides/PageTitle.astro

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -75,26 +75,34 @@ const hideTitle = Astro.locals.starlightRoute.hideTitle;
7575
const hideBreadcrumbs = Astro.locals.starlightRoute.hideBreadcrumbs;
7676
---
7777

78-
{
79-
!hideBreadcrumbs && (
80-
<Breadcrumbs {...breadcrumbProps}>
81-
<svg
82-
slot="separator"
83-
xmlns="http://www.w3.org/2000/svg"
84-
width="24"
85-
height="24"
86-
viewBox="0 0 24 24"
87-
fill="none"
88-
stroke="currentColor"
89-
stroke-width="2"
90-
stroke-linecap="round"
91-
stroke-linejoin="round"
92-
>
93-
<polyline points="9 18 15 12 9 6" />
94-
</svg>
95-
</Breadcrumbs>
96-
)
97-
}
78+
<div class="flex items-center justify-between">
79+
{
80+
!hideBreadcrumbs && (
81+
<Breadcrumbs {...breadcrumbProps}>
82+
<svg
83+
slot="separator"
84+
xmlns="http://www.w3.org/2000/svg"
85+
width="24"
86+
height="24"
87+
viewBox="0 0 24 24"
88+
fill="none"
89+
stroke="currentColor"
90+
stroke-width="2"
91+
stroke-linecap="round"
92+
stroke-linejoin="round"
93+
>
94+
<polyline points="9 18 15 12 9 6" />
95+
</svg>
96+
</Breadcrumbs>
97+
)
98+
}
99+
100+
{
101+
frontmatter.template !== "splash" && (
102+
<CopyPageButton client:idle />
103+
)
104+
}
105+
</div>
98106

99107
{!hideTitle && <Default />}
100108

@@ -124,14 +132,6 @@ const hideBreadcrumbs = Astro.locals.starlightRoute.hideBreadcrumbs;
124132
)
125133
}
126134

127-
{
128-
frontmatter.template !== "splash" && (
129-
<div class="flex items-center justify-end">
130-
<CopyPageButton client:idle />
131-
</div>
132-
)
133-
}
134-
135135
<style>
136136
:root {
137137
--color-link-breadcrumbs: var(--sl-color-text-accent);

0 commit comments

Comments
 (0)