From e2ab3ad612bebbd62ee5f8cf70327caccc2027d0 Mon Sep 17 00:00:00 2001 From: Patrick Date: Wed, 20 May 2026 13:55:53 +0200 Subject: [PATCH] small cleanup --- src/theatergf-gallery/view.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/theatergf-gallery/view.js b/src/theatergf-gallery/view.js index 1ace77f..d92c291 100644 --- a/src/theatergf-gallery/view.js +++ b/src/theatergf-gallery/view.js @@ -168,7 +168,7 @@ class TheaterGFGalleryHTMLElement extends HTMLElement { .slide-control { height: 20px; - padding: 5px 10px; + padding: 5px 15px 0px 15px; position: absolute; bottom: 0px; @@ -176,7 +176,6 @@ class TheaterGFGalleryHTMLElement extends HTMLElement { transform: translateX(-50%); background-color: var(--wp--preset--color--base); - background: black; border-top-left-radius: 15px; border-top-right-radius: 15px; @@ -184,7 +183,7 @@ class TheaterGFGalleryHTMLElement extends HTMLElement { display: flex; flex-direction: row; flex-wrap: nowrap; - gap: 5px; + gap: 7.5px; align-items: center; } @@ -242,6 +241,10 @@ class TheaterGFGalleryHTMLElement extends HTMLElement { } __got_to_current_slide() { + if (this.current_slide.max - this.current_slide.min < 1) { + return; + } + const target_position = this.offsetWidth * this.current_slide.count; this.slide_container.animate([