Permalink
Browse files

Merge pull request #512 from darkwing/css-issue-775161

fix bug 775161 - Preventing CSS overflow in translate
  • Loading branch information...
2 parents 71e389f + 75aa332 commit 55de882946c6cab3892c97eb5a7d6d1ebcfc415a @groovecoder groovecoder committed Aug 15, 2012
Showing with 9 additions and 1 deletion.
  1. +1 −1 apps/wiki/templates/wiki/translate.html
  2. +8 −0 media/css/wiki-screen.css
View
2 apps/wiki/templates/wiki/translate.html
@@ -138,7 +138,7 @@
<header>
<h3>{{ _('Approved {default_locale} version:')|f(default_locale=settings.LANGUAGES[settings.WIKI_DEFAULT_LANGUAGE.lower()]) }}</h3>
</header>
- <div class="boxed">
+ <div class="boxed translate-display">
{{ based_on.content|safe }}
</div>
</article>
View
8 media/css/wiki-screen.css
@@ -399,6 +399,14 @@ a.edit-section:hover, a.edit-section:active, a.edit-section:focus { color: #333;
#trans-content #cke_contents_wikiArticle { min-height: 800px; }
+.translate-display {
+ overflow-x: hidden;
+}
+
+.translate-display pre {
+ white-space: normal;
+}
+
/* The .no-details styles will get applied only if JavaScript is enabled and <details> is not natively supported. */
/* Add focus styles (for keyboard accessibility) */
.no-details summary:hover, .no-details summary:focus { background: rgba(170,160,130,.1); outline: 0; }

0 comments on commit 55de882

Please sign in to comment.