🎨 头部优化

This commit is contained in:
gaofy 2023-12-27 17:38:07 +08:00
parent 4676fbf826
commit e1f93bc20b
2 changed files with 25 additions and 5 deletions

View File

@ -170,17 +170,21 @@ const userCommand = (e: string) => {
padding: 0 24px;
background: white;
display: flex;
justify-content: space-between;
justify-content: center;
align-items: center;
padding-right: 460px;
.logo-box {
height: 50px;
position: absolute;
top: 0;
left: 24px;
display: flex;
align-items: center;
height: 100%;
img {
height: 100%;
height: 50px;
}
}
.menu-box {
display: flex;
@ -264,4 +268,18 @@ const userCommand = (e: string) => {
background: #f5f7fa;
}
}
@media screen and (max-width: 1300px) {
.page-content {
.head-box {
justify-content: flex-start;
.logo-box {
position: relative;
top: auto;
left: auto;
}
}
}
}
</style>

View File

@ -53,6 +53,7 @@ onMounted(() => {
height: 100%;
display: flex;
flex-direction: column;
transition: all .3s;
.header-box {
width: 100%;
height: 50px;
@ -67,6 +68,7 @@ onMounted(() => {
}
&.route-home {
padding-top: 10px;
transition: all .3s;
.header-box {
display: none;
}