Prtksxna has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/110685

Change subject: Add horizontal scroll to pre elements (where required)
......................................................................

Add horizontal scroll to pre elements (where required)

On pages where `pre` elements have a lot of content, it breaks
the layout and the content overflows out of the gray box.

Example - https://en.wikipedia.org/wiki/User:Prtksxna/test.js

Change-Id: I4af1625ed2ed4ca7a5a7f4bd416107b49be1b4b0
---
M less/screen-beta.less
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VectorBeta 
refs/changes/85/110685/1

diff --git a/less/screen-beta.less b/less/screen-beta.less
index 4c21a3a..47032ee 100644
--- a/less/screen-beta.less
+++ b/less/screen-beta.less
@@ -82,6 +82,10 @@
                margin-bottom: 8pt;
        }
 
+       pre {
+               overflow-x: auto;
+       }
+
        // FIXME: this is hacky
        #toc h2 {
                font-size: 100%;

-- 
To view, visit https://gerrit.wikimedia.org/r/110685
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4af1625ed2ed4ca7a5a7f4bd416107b49be1b4b0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VectorBeta
Gerrit-Branch: master
Gerrit-Owner: Prtksxna <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to