Merge "Fix toolbar dialog placement"

This commit is contained in:
jenkins-bot 2021-03-01 19:59:39 +00:00 committed by Gerrit Code Review
commit 6650eb56cd
2 changed files with 10 additions and 2 deletions

View file

@ -73,7 +73,10 @@ CommentTarget.static.importRules.external.blacklist = ve.extendObject(
);
CommentTarget.prototype.attachToolbar = function () {
this.replyWidget.$headerWrapper.prepend( this.getToolbar().$element );
this.replyWidget.$headerWrapper.append(
this.getToolbar().$element.append( this.replyWidget.modeTabSelect.$element )
);
this.getToolbar().$element.prepend( this.getSurface().getToolbarDialogs().$element );
};
CommentTarget.prototype.getSurfaceConfig = function ( config ) {

View file

@ -31,10 +31,15 @@
}
}
&-headerWrapper {
.ve-ui-targetToolbar {
display: flex;
// Allow wrapping when the space is very narrow (mode switcher above toolbar)
flex-wrap: wrap-reverse;
> .oo-ui-windowManager {
flex-basis: 100%;
box-shadow: 0 -1px 1px 0 rgba( 0, 0, 0, 0.1 );
}
}
&-modeTabs {