[OCaml] Mobile-friendly clone of cgit.
style make commit-body horizontally scrollable on narrow displays
Change white-space from pre-wrap to pre and add overflow-x: auto. This preserves the original line breaks in commit messages while allowing horizontal scrolling for lines that exceed the viewport width on mobile.
lib/static/styles.css
@@ -256,7 +256,8 @@
256
256
257
257
.commit-body {
258
258
font-family: monospace;
259
Removed:
white-space: pre-wrap;
259
Added:
white-space: pre;
260
Added:
overflow-x: auto;
260
261
background: #1e1e1e;
261
262
padding: 0.75em 1em;
262
263
border-radius: 0.25rem;