Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/components/docPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export function DocPage({
</aside>
)}
</section>
<style>{`:root { --doc-content-w: 1200px; } #doc-content { max-width: var(--doc-content-w); }`}</style>
<style>{`:root { --doc-content-w: 1200px; } #doc-content { max-width: var(--doc-content-w); box-sizing: border-box; }`}</style>
<style>{`
@media (min-width: 2057px) {
:root {
Expand All @@ -137,8 +137,8 @@ export function DocPage({
/* Cap content width and center (reinforced at this breakpoint) */
#doc-content {
max-width: var(--doc-content-w);
padding-left: 5rem; /* increase from px-6 (24px) to 5rem (80px) */
padding-right: 5rem;
padding-left: 2rem;
padding-right: 2rem;
}
/* Cancel default push so content can center */
[data-layout-anchor="left"] + .main-content {
Expand Down
2 changes: 1 addition & 1 deletion src/components/sidebar/developDocsSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function DevelopDocsSidebar({
return toTree(apiNodes);
};
return (
<aside className={`${styles.sidebar} p-3`}>
<aside className={`${styles.sidebar} p-3`} data-layout-anchor="left">
<input type="checkbox" id={sidebarToggleId} className="hidden" />
<style>{':root { --sidebar-width: 300px; }'}</style>
<div className="md:flex flex-col items-stretch">
Expand Down
Loading