Skip to content

Commit

Permalink
Merge pull request #144 from NaMooJoon/master
Browse files Browse the repository at this point in the history
[FIX] 디자인 이슈 중 특정화면 크기에서 navbar 깨지는 문제 해결 #92
  • Loading branch information
NaMooJoon authored May 4, 2023
2 parents e2ce357 + 0cd74d1 commit 17edae0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
17 changes: 14 additions & 3 deletions src/app/core/components/navbar/navbar.component.less
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ div>ul>li>a {
}

/*tablet, mobile*/
@media (max-width: 768px) {
@media (max-width: 860px) { // max-width: 768px

.login-menu,
.user-menu{
Expand Down Expand Up @@ -354,12 +354,23 @@ div>ul>li>a {
}

/*tablet*/
@media (min-width: 426px) and (max-width: 768px){
@media (min-width: 875px) and (max-width: 1040px){ // max-width: 768px
.login-menu,
.common-menu,
.user-menu{
font-size: 19px;
font-size: 16px;
margin-right: 10px;
}
display: none;
}

/*tablet*/
@media (min-width: 426px) and (max-width: 875px){ // max-width: 768px
.login-menu,
.user-menu{
font-size: 14px;
margin-right: 8px;
}
}

/*mobile L*/
Expand Down
2 changes: 1 addition & 1 deletion src/app/core/components/navbar/navbar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class NavbarComponent implements OnInit {
}

selectedStyleObject(flag: boolean): Object {
if(matchMedia("(max-width: 768px)").matches) {
if(matchMedia("(max-width: 860px)").matches) { // 기존 768px
if (flag) {
return {
color: "#0FBAFF",
Expand Down

0 comments on commit 17edae0

Please sign in to comment.