Skip to content

Commit

Permalink
Fix sidebar preview rendering when printing in Starlight docs
Browse files Browse the repository at this point in the history
  • Loading branch information
delucis committed Dec 17, 2024
1 parent 080391b commit 20cf394
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/src/components/sidebar-preview.astro
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ function makeEntries(items: SidebarConfig): SidebarEntry[] {
background-color: var(--sl-color-bg-sidebar);
border: 1px solid var(--sl-color-gray-5);
padding: 1rem var(--sl-sidebar-pad-x);
max-width: var(--sl-sidebar-width);
/* Matches `var(--sl-sidebar-width)`, but hardcoded to avoid being overridden when printing the page. */
max-width: 18.75rem;
}
</style>

0 comments on commit 20cf394

Please sign in to comment.