small cleanup
This commit is contained in:
parent
4cb34a8761
commit
e2ab3ad612
|
|
@ -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([
|
||||
|
|
|
|||
Loading…
Reference in New Issue