Keep activity detail prev/next nav sticky while scrolling.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-21 16:43:19 +03:30
co-authored by Cursor
parent e2478e7795
commit 9acb73c197
+16 -2
View File
@@ -1890,8 +1890,15 @@ onUnmounted(() => {
align-items: center; align-items: center;
gap: 0.45rem; gap: 0.45rem;
min-height: 32px; min-height: 32px;
position: relative; /* زیر هدر دسکتاپ اپ (۱۶ + control + ۱۶) بماند تا با اسکرول در دسترس باشد */
z-index: 4; position: sticky;
top: calc(16px + var(--control-h) + 16px);
z-index: 15;
margin-inline: -16px;
padding: 0.4rem 16px;
background: color-mix(in srgb, var(--bg, #f8fafc) 92%, transparent);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
} }
.nav h1 { .nav h1 {
@@ -2790,6 +2797,13 @@ dd {
cursor: not-allowed; cursor: not-allowed;
} }
@media (max-width: 900px) {
.nav {
/* زیر هدر موبایل اپ (۰٫۷۵rem + control + ۰٫۷۵rem) */
top: calc(0.75rem + var(--control-h) + 0.75rem);
}
}
@media (max-width: 899px) { @media (max-width: 899px) {
.page { .page {
padding-bottom: calc(1rem + var(--mobile-tabbar-h)); padding-bottom: calc(1rem + var(--mobile-tabbar-h));