small cleanup

This commit is contained in:
Patrick 2026-05-20 13:55:53 +02:00
parent 4cb34a8761
commit e2ab3ad612
1 changed files with 6 additions and 3 deletions

View File

@ -168,7 +168,7 @@ class TheaterGFGalleryHTMLElement extends HTMLElement {
.slide-control { .slide-control {
height: 20px; height: 20px;
padding: 5px 10px; padding: 5px 15px 0px 15px;
position: absolute; position: absolute;
bottom: 0px; bottom: 0px;
@ -176,7 +176,6 @@ class TheaterGFGalleryHTMLElement extends HTMLElement {
transform: translateX(-50%); transform: translateX(-50%);
background-color: var(--wp--preset--color--base); background-color: var(--wp--preset--color--base);
background: black;
border-top-left-radius: 15px; border-top-left-radius: 15px;
border-top-right-radius: 15px; border-top-right-radius: 15px;
@ -184,7 +183,7 @@ class TheaterGFGalleryHTMLElement extends HTMLElement {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
flex-wrap: nowrap; flex-wrap: nowrap;
gap: 5px; gap: 7.5px;
align-items: center; align-items: center;
} }
@ -242,6 +241,10 @@ class TheaterGFGalleryHTMLElement extends HTMLElement {
} }
__got_to_current_slide() { __got_to_current_slide() {
if (this.current_slide.max - this.current_slide.min < 1) {
return;
}
const target_position = this.offsetWidth * this.current_slide.count; const target_position = this.offsetWidth * this.current_slide.count;
this.slide_container.animate([ this.slide_container.animate([