Skip to content

Commit

Permalink
Merge pull request #84 from CAU-Capstone-FindIt/nickname
Browse files Browse the repository at this point in the history
fix : TopNav 높이 수정
  • Loading branch information
bhs3066 authored Dec 7, 2024
2 parents 8865801 + b14df94 commit dce243a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/pages/TopNav.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const Container = styled.div`
width: 100%;
max-width: 600px;
height: 70px; // 네비게이션 바의 높이를 화면 비율에 맞춰 설정 (전체 화면의 10%)
max-height: 70px;
bottom: 0;
background-color: white;
display: flex;
Expand Down
11 changes: 6 additions & 5 deletions src/pages/TopNavBack.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,17 @@ const Container = styled.div`
width: 100%;
max-width: 600px;
height: 70px; // 네비게이션 바의 높이를 화면 비율에 맞춰 설정 (전체 화면의 10%)
max-height: 70px;
bottom: 0;
background-color: white;
display: flex;
justify-content: space-between;
align-items: center;
@media (max-width: 600px) {
height: calc(
var(--vh, 1vh) * 8
); // 작은 화면에서는 화면 비율에 맞게 높이 설정 전체 높이의 &%
}
// @media (max-width: 600px) {
// height: calc(
// var(--vh, 1vh) * 8
// ); // 작은 화면에서는 화면 비율에 맞게 높이 설정 전체 높이의 &%
// }
z-index: 100;
Expand Down

0 comments on commit dce243a

Please sign in to comment.