Follow-up I394f02912: Use existing class API to move button away from sticky header

Bug: T318474
Change-Id: Iab3a817e305d48e922499aad3620d93cf8aa165e
This commit is contained in:
Ed Sanders 2022-10-17 14:49:36 +01:00
parent 2b427fdef3
commit 481b687c35
2 changed files with 3 additions and 5 deletions

View file

@ -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 ?

View file

@ -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 {