Skip to content

Commit e370ab5

Browse files
fix: adjust right padding in OnThisPage component to fix text overflow (#1206)
* fix: adjust right padding in OnThisPage component to fix text overflow * tweak styles --------- Co-authored-by: Rich Harris <[email protected]>
1 parent 93f01c4 commit e370ab5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

apps/svelte.dev/src/routes/docs/[...path]/OnThisPage.svelte

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,11 @@
217217
overflow-y: auto;
218218
scrollbar-width: none;
219219
margin-left: -1rem; /* negative margin avoids focus rings being cut off */
220-
padding: 0 0 var(--sk-page-padding-top) 1rem;
220+
padding: 0 var(--sk-page-padding-side) var(--sk-page-padding-top) 1rem;
221+
222+
li {
223+
text-indent: 1ch hanging;
224+
}
221225
222226
li:first-child {
223227
display: list-item;

0 commit comments

Comments
 (0)