mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 06:06:41 +01:00
Fix arrows gone missing in carousel
This commit is contained in:
parent
d35ffafe4b
commit
2dde64e740
2 changed files with 10 additions and 0 deletions
|
@ -1009,6 +1009,9 @@ a[href^='http'][rel*='nofollow']:visited:not(:has(div)) {
|
|||
:is(.carousel-top-controls, .carousel-controls)[hidden] {
|
||||
opacity: 0;
|
||||
}
|
||||
.carousel-controls {
|
||||
top: 45%;
|
||||
}
|
||||
|
||||
:is(.button, button).carousel-button,
|
||||
button.carousel-dot {
|
||||
|
|
|
@ -84,6 +84,13 @@ function MediaModal({
|
|||
};
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
let timer = setTimeout(() => {
|
||||
carouselRef.current?.focus?.();
|
||||
}, 100);
|
||||
return () => clearTimeout(timer);
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<div class="media-modal-container">
|
||||
<div
|
||||
|
|
Loading…
Reference in a new issue