mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-21 13:19:22 +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] {
|
:is(.carousel-top-controls, .carousel-controls)[hidden] {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
.carousel-controls {
|
||||||
|
top: 45%;
|
||||||
|
}
|
||||||
|
|
||||||
:is(.button, button).carousel-button,
|
:is(.button, button).carousel-button,
|
||||||
button.carousel-dot {
|
button.carousel-dot {
|
||||||
|
|
|
@ -84,6 +84,13 @@ function MediaModal({
|
||||||
};
|
};
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
let timer = setTimeout(() => {
|
||||||
|
carouselRef.current?.focus?.();
|
||||||
|
}, 100);
|
||||||
|
return () => clearTimeout(timer);
|
||||||
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div class="media-modal-container">
|
<div class="media-modal-container">
|
||||||
<div
|
<div
|
||||||
|
|
Loading…
Reference in a new issue