Skip to content

Commit

Permalink
docs: change overflow-x from scroll to auto (#213)
Browse files Browse the repository at this point in the history
This hides the scrollbar when there is sufficient space, which fixes
the layout of the code component on the main website as well as a
few examples
  • Loading branch information
thesilican authored May 14, 2024
1 parent df63a27 commit fe94299
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/astro/src/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ figure {
pre,
code,
figure {
@apply overflow-x-scroll px-2 py-1;
@apply overflow-x-auto px-2 py-1;
}
p {
@apply text-xl;
Expand Down
2 changes: 1 addition & 1 deletion examples/astro/src/pages/page.astro
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default defineConfig({
pre,
code,
figure {
@apply overflow-x-scroll px-2 py-1;
@apply overflow-x-auto px-2 py-1;
}
p {
@apply text-xl;
Expand Down
2 changes: 1 addition & 1 deletion examples/sveltekit/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export let data: PageData;
:global(code),
:global(figure) {
border-radius: 5px;
overflow-x: scroll;
overflow-x: auto;
padding: 5px 6px 6px 6px;
}
Expand Down
2 changes: 1 addition & 1 deletion website/src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ figure {
pre,
code,
figure {
@apply overflow-x-scroll;
@apply overflow-x-auto;
}
p {
@apply text-xl;
Expand Down

0 comments on commit fe94299

Please sign in to comment.