Skip to content

A platform for community discussion. Free, open, simple.

UX: Allow linebreaks mid-word in github onebox file paths (#18777)

David Taylora9f5af10659b
diff --git a/app/assets/stylesheets/common/base/onebox.scss b/app/assets/stylesheets/common/base/onebox.scss
index b8d75d913ec..b35ae31a219 100644
--- a/app/assets/stylesheets/common/base/onebox.scss
+++ b/app/assets/stylesheets/common/base/onebox.scss
@@ -376,6 +376,10 @@ pre.onebox code ol.lines li:before {
counter-increment: li-counter;
}
+.onebox.githubblob h4 {
+ word-break: break-all;
+}
+
pre.onebox code ol {
margin-left: 0;
line-height: var(--line-height-large);