Improve home-carousel display for smaller displays

This commit is contained in:
Prayag Prajapati committed 2024-01-12 14:52:27 +05:30
1 parent e330b7e2f9
commit 7730ad1858
8 files changed
+324 -134

No files matched your search

+1 -1
View File
@@ -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%;
+1 -1
View File
@@ -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">