Keep activity detail prev/next nav sticky while scrolling.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1890,8 +1890,15 @@ onUnmounted(() => {
|
||||
align-items: center;
|
||||
gap: 0.45rem;
|
||||
min-height: 32px;
|
||||
position: relative;
|
||||
z-index: 4;
|
||||
/* زیر هدر دسکتاپ اپ (۱۶ + control + ۱۶) بماند تا با اسکرول در دسترس باشد */
|
||||
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 {
|
||||
@@ -2790,6 +2797,13 @@ dd {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.nav {
|
||||
/* زیر هدر موبایل اپ (۰٫۷۵rem + control + ۰٫۷۵rem) */
|
||||
top: calc(0.75rem + var(--control-h) + 0.75rem);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 899px) {
|
||||
.page {
|
||||
padding-bottom: calc(1rem + var(--mobile-tabbar-h));
|
||||
|
||||
Reference in New Issue
Block a user