Fossil SCM

CSS tweak to make long hashes wrap in narrow /chat views.

stephan 2023-03-07 12:40 trunk
Commit 8a401c209f4b07183b5ec5a88cea0442935b22f1dd5fce7ad911e84caa2b4b7c
1 file changed +2
--- src/style.chat.css
+++ src/style.chat.css
@@ -37,11 +37,13 @@
3737
padding: 0.25em 0.5em;
3838
margin-top: 0;
3939
min-width: 9em /*avoid unsightly "underlap" with the neighboring
4040
.message-widget-tab element*/;
4141
white-space: normal;
42
+ word-break: break-word /* so that full hashes wrap on narrow screens */;
4243
}
44
+
4345
body.chat .message-widget-content.wide {
4446
/* Special case for when embedding content which we really want to
4547
expand, namely iframes. */
4648
width: 98%;
4749
}
4850
--- src/style.chat.css
+++ src/style.chat.css
@@ -37,11 +37,13 @@
37 padding: 0.25em 0.5em;
38 margin-top: 0;
39 min-width: 9em /*avoid unsightly "underlap" with the neighboring
40 .message-widget-tab element*/;
41 white-space: normal;
 
42 }
 
43 body.chat .message-widget-content.wide {
44 /* Special case for when embedding content which we really want to
45 expand, namely iframes. */
46 width: 98%;
47 }
48
--- src/style.chat.css
+++ src/style.chat.css
@@ -37,11 +37,13 @@
37 padding: 0.25em 0.5em;
38 margin-top: 0;
39 min-width: 9em /*avoid unsightly "underlap" with the neighboring
40 .message-widget-tab element*/;
41 white-space: normal;
42 word-break: break-word /* so that full hashes wrap on narrow screens */;
43 }
44
45 body.chat .message-widget-content.wide {
46 /* Special case for when embedding content which we really want to
47 expand, namely iframes. */
48 width: 98%;
49 }
50

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button