Skip to content

Commit

Permalink
chore: 랜딩페이지에서 스크롤바 보이도록 수정 (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
studioOwol authored Dec 5, 2024
1 parent 4562a0e commit 6f8887d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions fe/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ body {

body {
margin: 0;
overflow-y: scroll;
}

.app {
Expand All @@ -120,19 +121,19 @@ body {
}

@media (min-width: 768px) {
.game-wrapper {
.game-page {
height: 100vh;
overflow: hidden;
}
}

@media (max-width: 767px) {
.game-wrapper {
.game-page {
height: auto;
overflow-y: visible;
}

body {
.game-page body {
overflow-y: auto;
}
}
Expand Down
2 changes: 1 addition & 1 deletion fe/src/pages/GamePage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const GamePage = () => {
}

return (
<div className="game-wrapper">
<div className="game-page game-wrapper">
<div className="relative overflow-y-auto p-6 mt-2 min-h-screen">
<div className="space-y-6">
<GameScreen />
Expand Down
2 changes: 1 addition & 1 deletion fe/src/pages/RoomListPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const RoomListPage = () => {
}, []);

return (
<div className="game-wrapper">
<div className="game-page game-wrapper">
<div className="relative overflow-y-auto p-6 mt-2 min-h-screen flex-1">
<RoomHeader />
<SearchBar />
Expand Down

0 comments on commit 6f8887d

Please sign in to comment.