css: Improve handling of text overflow in <pre>
When a <pre> section (commit message, blob, diff) has a very long line, today it makes the entire page very wide, causing usability issues. This patch makes <pre> have a horizontal scroll in those cases, which is easier to use.
This commit is contained in:
parent
bc1ee87dfe
commit
9f3df4899f
@ -147,6 +147,14 @@ div.toggable-title {
|
||||
margin-bottom: 0.3em;
|
||||
}
|
||||
|
||||
pre {
|
||||
/* Sometimes, <pre> elements (commit messages, diffs, blobs) have very
|
||||
* long lines. In those case, use automatic overflow, which will
|
||||
* introduce a horizontal scroll bar for this element only (more
|
||||
* comfortable than stretching the page, which is the default). */
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
|
||||
/* Commit message and diff. */
|
||||
pre.commit-message {
|
||||
|
Loading…
Reference in New Issue
Block a user