Skip to content

Commit 9b513fd

Browse files
authored
fix: adapt to the head (#113)
* fix: adapt to the head * fix: modify the comments
1 parent 3784da9 commit 9b513fd

2 files changed

Lines changed: 30 additions & 3 deletions

File tree

packages/common/src/components/responsive.less

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@
444444
}
445445
}
446446

447-
@media screen and (max-width: 1475px) {
447+
@media screen and (max-width: 1400px) {
448448
.opentiny-design-header {
449449
display: grid;
450450
grid-template-columns: 1fr auto; // 两列:左侧内容 + 右侧nav-right
@@ -627,14 +627,18 @@
627627
}
628628
}
629629

630-
@media (min-width: 1476px) and (max-width: 1576px) {
630+
@media (min-width: 1400px) and (max-width: 1576px) {
631+
631632
.opentiny-design-header {
632633
// 右侧导航
633634
.nav-right {
634635
.dropdown-menu {
635636
.dropdown-content-title {
636637
margin-left: 243px;
637638
}
639+
.dropdown-content .dropdown-app {
640+
width: 216px;
641+
}
638642
}
639643
}
640644
}
@@ -677,6 +681,29 @@
677681
}
678682
}
679683

684+
@media (min-width: 1401px) and (max-width: 1475px) {
685+
.opentiny-design-header {
686+
// 左侧导航
687+
.nav-left {
688+
margin-right: 48px;
689+
}
690+
691+
// 中间导航
692+
.nav-center {
693+
.top-menu {
694+
margin-right: 20px;
695+
}
696+
}
697+
698+
// 右侧导航
699+
.nav-right {
700+
.mg-r {
701+
margin-right: 20px;
702+
}
703+
}
704+
}
705+
}
706+
680707
@media (min-width: 905px) and (max-width: 1045px) {
681708
.opentiny-design-header {
682709
// 右侧导航

packages/home/src/index.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ body {
9898
}
9999
}
100100

101-
@media (min-width: 815px) and (max-width: 1476px) {
101+
@media (min-width: 815px) and (max-width: 1400px) {
102102
#app {
103103
margin-top: 67px;
104104
height: calc(100% - 67px);

0 commit comments

Comments
 (0)