← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~pelpsi/launchpad:long-translations-hints-do-not-wrap into launchpad:master

 

Simone Pelosi has proposed merging ~pelpsi/launchpad:long-translations-hints-do-not-wrap into launchpad:master.

Commit message:
Long translations hints do not wrap and cause the save and continue button to be offscreen

Added css rule white-space:pre-wrap to wrap long translation hints

LP: #1475300

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)
Related bugs:
  Bug #1475300 in Launchpad itself: "Long translations hints do not wrap and cause the save and continue button to be offscreen"
  https://bugs.launchpad.net/launchpad/+bug/1475300

For more details, see:
https://code.launchpad.net/~pelpsi/launchpad/+git/launchpad/+merge/439273
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~pelpsi/launchpad:long-translations-hints-do-not-wrap into launchpad:master.
diff --git a/lib/lp/translations/templates/currenttranslationmessage-translate-one.pt b/lib/lp/translations/templates/currenttranslationmessage-translate-one.pt
index 3035499..2dde4d2 100644
--- a/lib/lp/translations/templates/currenttranslationmessage-translate-one.pt
+++ b/lib/lp/translations/templates/currenttranslationmessage-translate-one.pt
@@ -92,7 +92,7 @@
     <span class="sprite info" title="Developer's note to translators"></span>
   </th>
   <td>
-    <pre class="lesser" tal:content="view/source_comment">
+    <pre class="lesser" tal:content="view/source_comment" style="white-space: pre-wrap;">
       This refers to the content type.
     </pre>
   </td>