Skip to content

Commit

Permalink
Fixed windowWidth hook and image height warning
Browse files Browse the repository at this point in the history
  • Loading branch information
IanWearsHat committed Nov 1, 2024
1 parent cc33747 commit 7bc1531
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/site/src/app/schedule/DayThree/DayThree.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
position: absolute;
width: 120%;
min-width: 1400px;
height: auto;
}

.title {
Expand Down
1 change: 1 addition & 0 deletions apps/site/src/app/schedule/DayTwo/DayTwo.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
position: absolute;
width: 90%;
min-width: 1400px;
height: auto;
}

.title {
Expand Down
2 changes: 1 addition & 1 deletion apps/site/src/lib/useWindowWidth.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useState, useEffect } from "react";

export default function useWindowWidth() {
const [windowWidth, setWindowWidth] = useState(window.innerWidth);
const [windowWidth, setWindowWidth] = useState(0);

useEffect(() => {
function handleResize() {
Expand Down

0 comments on commit 7bc1531

Please sign in to comment.