Skip to content

Commit b3683c3

Browse files
committed
docs: improve responsiveness
1 parent 955d254 commit b3683c3

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

apps/website/src/components/status-banner/status-banner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export const StatusBanner = component$(({ status }: StatusBannerProps) => {
8181
onAnimationEnd$={() => (isBannerClosedSig.value = true)}
8282
class={cn(
8383
getBackgroundByStatus(status),
84-
'normal-state rounded-base relative -mx-8 border-2 px-8 py-6 md:flex-row md:items-center',
84+
'normal-state rounded-base relative border-2 px-8 py-6 md:flex-row md:items-center 2xl:-mx-8',
8585
)}
8686
style={{ marginBottom: `${marginBottom}px` }}
8787
>

apps/website/src/routes/docs.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
.docs {
2-
& {
3-
@apply overflow-hidden px-8 py-8;
4-
}
5-
62
table a {
73
@apply border-none;
84
}

apps/website/src/routes/layout.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ export default component$(() => {
3131
<>
3232
<Header showBottomBorder={true} showVersion={true} />
3333
<MDXProvider components={components}>
34-
<div class="relative flex justify-between space-x-10 2xl:justify-center 2xl:space-x-20">
34+
<div class="flex justify-around lg:justify-around lg:space-x-10 2xl:justify-center 2xl:space-x-24">
3535
<DocsNavigation
3636
linksGroups={menuItemsGroups}
37-
class=" bg-background sticky top-16 hidden h-[calc(100vh-64px)] min-w-72 overflow-auto lg:block"
37+
class=" sticky top-16 hidden h-[calc(100vh-64px)] min-w-72 overflow-auto lg:flex"
3838
/>
39-
<main class="docs w-full max-w-3xl">
39+
<main class="w-full max-w-3xl px-4 py-8 sm:px-8">
4040
<Slot />
4141
</main>
4242
<div class="hidden min-w-64 text-sm xl:block">

0 commit comments

Comments
 (0)