功能:适配前端宽屏桌面布局
This commit is contained in:
@@ -113,8 +113,9 @@ const handleNavClick = (tab: string) => {
|
||||
.bottom-nav {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
left: 50%;
|
||||
right: auto;
|
||||
width: min(100%, var(--frontend-page-max-width));
|
||||
height: 60px;
|
||||
background: white;
|
||||
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
|
||||
@@ -125,7 +126,7 @@ const handleNavClick = (tab: string) => {
|
||||
overflow: hidden;
|
||||
backface-visibility: hidden;
|
||||
will-change: transform;
|
||||
transform: translateZ(0);
|
||||
transform: translateX(-50%) translateZ(0);
|
||||
transition: none !important;
|
||||
}
|
||||
|
||||
@@ -135,7 +136,6 @@ const handleNavClick = (tab: string) => {
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
max-width: 600px;
|
||||
padding: 0 10px;
|
||||
transition: none !important;
|
||||
}
|
||||
@@ -182,4 +182,4 @@ const handleNavClick = (tab: string) => {
|
||||
.nav-item.active .nav-label {
|
||||
font-weight: 600;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user