feat:移动端标题栏吸附效果

This commit is contained in:
hzm
2026-03-07 21:08:40 +08:00
parent 24eb21fd29
commit 1f3c0bbbc9
2 changed files with 4 additions and 4 deletions

View File

@@ -93,7 +93,7 @@
html,
body {
height: 100%;
overflow-x: hidden;
overflow-x: clip;
}
body {
@@ -784,7 +784,7 @@ body::before {
@media (max-width: 640px) {
.content {
padding-top: 140px;
overflow-x: hidden;
overflow-x: clip;
}
.navbar {
@@ -950,7 +950,7 @@ input[type="number"] {
padding: 12px;
width: 100%;
max-width: 100%;
overflow-x: hidden;
overflow-x: clip;
}
.grid {

View File

@@ -3957,7 +3957,7 @@ export default function HomePage() {
<div className="grid">
<div className="col-12">
<div ref={filterBarRef} className="filter-bar" style={{ top: isMobile ? undefined : navbarHeight , marginTop: navbarHeight, marginBottom: 8, display: 'flex', justifyContent: 'space-between', alignItems: 'center', flexWrap: 'wrap', gap: 12 }}>
<div ref={filterBarRef} className="filter-bar" style={{ ...(isMobile ? {} : { top: navbarHeight }), marginTop: navbarHeight, marginBottom: 8, display: 'flex', justifyContent: 'space-between', alignItems: 'center', flexWrap: 'wrap', gap: 12 }}>
<div className="tabs-container">
<div
className="tabs-scroll-area"