Darthbhyrava has uploaded a new change for review.

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

Change subject: Non-breaking spaces break page layout when confirming thanks in 
diff view
......................................................................

Non-breaking spaces break page layout when confirming thanks in diff view

Allowed for line-breaking after the transition in jquery.confirmable
in order to preserve page layout while confirming thanks in diff view.

Bug: T111735
Change-Id: I58ce261d38ade47c52b46be3942d2c95b86b3b46
---
M resources/src/jquery/jquery.confirmable.js
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/49/283749/1

diff --git a/resources/src/jquery/jquery.confirmable.js 
b/resources/src/jquery/jquery.confirmable.js
index 1ecce6c..908c9ba 100644
--- a/resources/src/jquery/jquery.confirmable.js
+++ b/resources/src/jquery/jquery.confirmable.js
@@ -158,6 +158,10 @@
                                $element.css( sideMargin, -elementWidth );
                                $interface.css( 'width', interfaceWidth );
                        }, 1 );
+                       // After the transition is over, allow line-breaking.
+                       setTimeout ( function ()  {
+                               $interface.css({"white-space": "pre-line", 
"width": "auto"});
+                       }, 2 );
                } );
        };
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I58ce261d38ade47c52b46be3942d2c95b86b3b46
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Darthbhyrava <[email protected]>

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

Reply via email to