Improve home-carousel display for smaller displays
This commit is contained in:
8 files changed
+324
-134
No files matched your search
@@ -2,7 +2,7 @@
|
||||
.carousel {
|
||||
position: relative;
|
||||
height: 70vh;
|
||||
margin: 4.4em 1.6em 1.6em 1.6em;
|
||||
margin: 0.6em 1.6em 1.6em 1.6em;
|
||||
&-button {
|
||||
position: absolute !important;
|
||||
top: 50%;
|
||||
|
||||
@@ -24,7 +24,7 @@ const Carousel = ({ content, onChange }) => {
|
||||
// biome-ignore lint/correctness/useExhaustiveDependencies: <explanation>
|
||||
useEffect(() => {
|
||||
onChange(currentSlide);
|
||||
}, [content[currentSlide].key]);
|
||||
}, [content[currentSlide]?.key]);
|
||||
|
||||
return (
|
||||
<div className="carousel">
|
||||
|
||||
Reference in new issue
Block a user