Skip to content

Commit

Permalink
removes dots when screen is short (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanmoon1991 authored Apr 11, 2024
1 parent 3bef93e commit fee1556
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const Carousel: Component<CarouselProps> = (props) => {
const [isShortScreen, setIsShortScreen] = createSignal(false);

createEffect(() => {
const mediaQuery = window.matchMedia("(max-height: 480px)");
const mediaQuery = window.matchMedia("(max-height: 840px)");
const updateScreenSize = () => setIsShortScreen(mediaQuery.matches);

updateScreenSize();
Expand Down

0 comments on commit fee1556

Please sign in to comment.