mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 00:13:36 +00:00
Follow-up I394f02912: Use existing class API to move button away from sticky header
Bug: T318474 Change-Id: Iab3a817e305d48e922499aad3620d93cf8aa165e
This commit is contained in:
parent
2b427fdef3
commit
481b687c35
|
@ -211,7 +211,7 @@ function ReplyWidget( commentController, commentDetails, config ) {
|
|||
|
||||
this.viewportScrollContainer = OO.ui.Element.static.getClosestScrollableContainer( document.body );
|
||||
this.scrollBackTopButton = new OO.ui.ButtonWidget( {
|
||||
classes: [ 'ext-discussiontools-ui-replyWidget-scrollback-top' ],
|
||||
classes: [ 'ext-discussiontools-ui-replyWidget-scrollback-top mw-sticky-header-element' ],
|
||||
icon: 'collapse',
|
||||
label: mw.msg(
|
||||
this.isNewTopic ?
|
||||
|
|
|
@ -52,10 +52,8 @@
|
|||
transform: translate( -50%, -150% );
|
||||
top: 0;
|
||||
left: 50%;
|
||||
|
||||
.vector-sticky-header-visible & {
|
||||
top: 50px;
|
||||
}
|
||||
// .mw-sticky-header-element is also added to move the element down
|
||||
// in skins that implement a sticky header
|
||||
}
|
||||
|
||||
&-scrollback-bottom {
|
||||
|
|
Loading…
Reference in a new issue