Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
suhanw committed Jan 13, 2025
1 parent 151af18 commit 9f079b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/intro/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const Intro = () => {
const introRef = useRef();
useLayoutEffect(() => {
if (introRef.current) {
introRef.current.style.height = `${window.innerHeight}px`;
introRef.current.style.height = `${introRef.current.offsetHeight}px`;
}
}, []);

Expand Down
2 changes: 1 addition & 1 deletion components/intro/style.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.intro {
// height: 100vh;
height: 100vh;
min-height: 460px;
display: flex;
justify-content: center;
Expand Down

0 comments on commit 9f079b1

Please sign in to comment.