11---
2- import StarlightPage from " @astrojs/starlight/components/StarlightPage.astro" ;
2+ import StarlightPage , {
3+ type StarlightPageProps ,
4+ } from " @astrojs/starlight/components/StarlightPage.astro" ;
35import { getCollection } from " astro:content" ;
46
57import Header from " ~/components/changelog-next/Header.astro" ;
@@ -11,17 +13,19 @@ import { format } from "date-fns";
1113const notes = await getCollection (" changelogs-next" );
1214
1315notes .sort ((a , b ) => b .data .date .getTime () - a .data .date .getTime ());
14- ---
1516
16- < StarlightPage
17- frontmatter = { {
17+ const props = {
18+ frontmatter: {
1819 title: " Changelogs" ,
1920 tableOfContents: false ,
2021 template: " splash" ,
21- }}
22- hideTitle ={ true }
23- hideBreadcrumbs ={ true }
24- >
22+ },
23+ hideTitle: true ,
24+ hideBreadcrumbs: true ,
25+ } as StarlightPageProps ;
26+ ---
27+
28+ <StarlightPage {... props }>
2529 <Header entries ={ notes } />
2630 <div
2731 class =" w-full max-w-[50rem] justify-self-center px-4 md:grid md:grid-cols-[15%_auto]"
@@ -158,15 +162,15 @@ notes.sort((a, b) => b.data.date.getTime() - a.data.date.getTime());
158162 .sl-steps {
159163 --bullet-size: 24px !important;
160164
161- li {
165+ & > li {
162166 padding-inline-start: calc(var(--bullet-size) + 2.5rem) !important;
163- }
164167
165- & > li::before {
166- content: "•" !important;
167- font-size: calc(var(--bullet-size) * 2) !important;
168- line-height: calc(var(--bullet-size) / 1.5) !important;
169- color: var(--orange-accent-200) !important;
168+ &::before {
169+ content: "•" !important;
170+ font-size: calc(var(--bullet-size) * 2) !important;
171+ line-height: calc(var(--bullet-size) / 1.5) !important;
172+ color: var(--orange-accent-200) !important;
173+ }
170174 }
171175 }
172176 }
0 commit comments