Skip to content

Commit 0eaf9fc

Browse files
committed
Fix the sidebar changing width because long words like User:Forgot_Password_Form: weren't breaking. Do it with the TOC too just in case.
1 parent 8b80a17 commit 0eaf9fc

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

resources/css/components/nav/sidebar.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@
177177
/* Increase the pointer targets a little to improve usability */
178178
padding: var(--dropdown-nav-item-padding);
179179
display: inline-block;
180+
/* Break at word boundaries when possible, for example, break on a long word like User:Forgot_Password_Form: */
181+
word-break: break-word;
180182
text-box: trim-start;
181183
}
182184
.o-current-menu-item {

resources/css/components/nav/toc.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@
171171
/* Need this to line up so that the scroll spy line also continues to line up */
172172
padding-inline: 0;
173173
a {
174+
/* Break at word boundaries when possible, for example, break on a long word like User:Forgot_Password_Form: */
175+
word-break: break-word;
174176
/* Indent the subnav */
175177
margin-inline-start: 0.3rem;
176178
padding-inline: var(--spacing-2xs);

0 commit comments

Comments
 (0)