It should be possible for editors via a gadget or Special:MyPage/common.css to hide the start and end arrows

Set mw-mmv-prev-image-loop, mw-mmv-next-image-loop classes.

Bug: T377791
Change-Id: If4c398274ef5b86f1220ef6ed8a8265ddebc0d6b
This commit is contained in:
Simon Legner 2024-11-01 18:51:05 +01:00 committed by Simon04
parent 8dab698605
commit 7c89a3e18b

View file

@ -490,6 +490,8 @@ class LightboxInterface extends UiElement {
this.$postDiv.css( 'top', this.$imageWrapper.height() );
}
this.buttons.$prev.toggleClass( 'mw-mmv-prev-image-loop', currentIndex === 0 );
this.buttons.$next.toggleClass( 'mw-mmv-next-image-loop', currentIndex === imageCount - 1 );
this.buttons.setOffset( prevNextTop );
this.buttons.$nav.toggle( imageCount > 1 );
this.buttons.$currentImageNumber.show().text(