Skip to content

Commit 623cd5d

Browse files
committed
Adjust padding in DocsLayout and blog layout for improved spacing
1 parent 371986c commit 623cd5d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

website/src/components/DocsLayout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,15 @@ export const DocsLayout = component$(() => {
9898
</div>
9999
<Navigation
100100
class={clsx(
101-
'px-8 py-9 lg:w-60 lg:py-32',
101+
'px-8 py-9 lg:w-60 lg:py-24 xl:py-32',
102102
showChapters.value ? '2xl:w-64' : '2xl:w-72'
103103
)}
104104
/>
105105
</SideBar>
106106

107107
<main
108108
class={clsx(
109-
'relative flex-1 py-12 md:py-20 lg:w-px lg:py-32',
109+
'relative flex-1 py-12 md:py-14 lg:w-px lg:py-24 xl:py-32',
110110
showChapters.value ? 'lg:px-9' : 'lg:pl-9'
111111
)}
112112
>

website/src/routes/blog/(posts)/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default component$(() => {
99
const location = useLocation();
1010

1111
return (
12-
<main class="flex flex-1 flex-col items-center py-12 md:py-20 lg:py-32">
12+
<main class="flex flex-1 flex-col items-center py-12 md:py-20 lg:py-28 xl:py-32">
1313
{/* Article */}
1414
<article class="max-w-(--breakpoint-xl) flex w-full flex-col gap-12 md:gap-20 lg:gap-24">
1515
<div class="max-w-(--breakpoint-md) mx-8 flex flex-col gap-5 md:items-center md:gap-7 md:self-center lg:mx-10 lg:gap-9">

website/src/routes/blog/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const usePosts = routeLoader$(async () =>
5050
export default component$(() => {
5151
const posts = usePosts();
5252
return (
53-
<main class="max-w-(--breakpoint-lg) flex w-full flex-1 flex-col self-center py-12 md:py-20 lg:py-32">
53+
<main class="max-w-(--breakpoint-lg) flex w-full flex-1 flex-col self-center py-12 md:py-14 lg:py-24 xl:py-32">
5454
<div class="mdx">
5555
<h1>Blog</h1>
5656
<p>

0 commit comments

Comments
 (0)