Nikerabbit has uploaded a new change for review.

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


Change subject: Fix the diff display in TUX
......................................................................

Fix the diff display in TUX

Bug: 46067
Change-Id: I770cdfdbb86c0086f48670c7a72d73c1ffb306ef
---
M resources/css/ext.translate.editor.css
M resources/js/ext.translate.editor.js
2 files changed, 9 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Translate 
refs/changes/08/54208/1

diff --git a/resources/css/ext.translate.editor.css 
b/resources/css/ext.translate.editor.css
index d598f06..6b03729 100644
--- a/resources/css/ext.translate.editor.css
+++ b/resources/css/ext.translate.editor.css
@@ -251,6 +251,12 @@
        background-repeat: no-repeat;
 }
 
+.tux-warning .diff {
+       font-size: 12px;
+       padding: 0 0 0 20px;
+       /* 15px space for icon */
+}
+
 .editarea .tux-more-warnings {
        background-color: #FBF6AD;
        position: absolute;
diff --git a/resources/js/ext.translate.editor.js 
b/resources/js/ext.translate.editor.js
index f82300c..7a61c03 100644
--- a/resources/js/ext.translate.editor.js
+++ b/resources/js/ext.translate.editor.js
@@ -756,6 +756,9 @@
                                return;
                        }
 
+                       // Load the diff styles
+                       mw.loader.load( 'mediawiki.action.history.diff', 
undefined, true );
+
                        // TODO add an option to hide diff
                        this.addWarning(
                                mw.msg( 'tux-editor-outdated-warning' ) +

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I770cdfdbb86c0086f48670c7a72d73c1ffb306ef
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit <[email protected]>

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

Reply via email to