]> Untitled Git - lemmy-ui.git/commitdiff
Horizontally scrollable code blocks, instead of wrapping.
authorCamel Coder <69110542+camel-cdr@users.noreply.github.com>
Wed, 14 Jun 2023 12:00:13 +0000 (12:00 +0000)
committerGitHub <noreply@github.com>
Wed, 14 Jun 2023 12:00:13 +0000 (12:00 +0000)
This disables word wrapping for code generated from markdown, and instead enables a horizontal scroll bar.

src/assets/css/main.css

index 1c45341d53d21016b3110b7ea66cf7a54d971cb8..3ff70e47f2b1d965d5b8b55cde78173e31d910fd 100644 (file)
   font-size: 1.2rem;
 }
 
+.md-div pre {
+  white-space: pre;
+  overflow-x: auto;
+}
+
 .md-div table {
   border-collapse: collapse;
   width: 100%;