From aec1fe1a2356ad28d0016b798ffda45da67f8459 Mon Sep 17 00:00:00 2001 From: MattNotarangelo Date: Wed, 1 Apr 2026 20:26:41 -0700 Subject: [PATCH] fix: slideshow controls alignment and button shape - Center page number readout by removing left offset - Align slider with pause button by zeroing asymmetric margins - Round all corners of pause button instead of right side only --- commonjs/lib/ui/ui.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/commonjs/lib/ui/ui.js b/commonjs/lib/ui/ui.js index 845f459..f41c7d3 100644 --- a/commonjs/lib/ui/ui.js +++ b/commonjs/lib/ui/ui.js @@ -506,6 +506,14 @@ function loadUserInterface(document) { }); } + // fix SRF slideshow: center page number, align slider, and fix button shape + var slideshowStyle = document.createElement('style'); + slideshowStyle.innerHTML = + '.srf-slideshow .slideshow-nav-readout { left: 0; }' + + '.srf-slideshow .slideshow-nav.ui-slider { margin-top: 0; margin-bottom: 0; }' + + '.srf-slideshow .slideshow-nav-wrapper .ui-button-icon-only { border-radius: 4px; }'; + document.body.appendChild(slideshowStyle); + //gallerybox var tt, it, isrc = null, ttmove = 0, ttshow = 0; var boxes = document.getElementsByClassName('galleryboxview');