fix: align floating tabs on logs and stats

This commit is contained in:
nepiedg
2026-04-02 01:13:33 +08:00
parent a7f532fe41
commit 3cea0dca0d
2 changed files with 22 additions and 4 deletions
+2 -3
View File
@@ -326,7 +326,7 @@ onShareAppMessage(() => {
.filters-sticky { .filters-sticky {
position: relative; position: relative;
height: 164rpx; height: 148rpx;
flex-shrink: 0; flex-shrink: 0;
z-index: 20; z-index: 20;
} }
@@ -335,9 +335,8 @@ onShareAppMessage(() => {
position: fixed; position: fixed;
left: 28rpx; left: 28rpx;
right: 28rpx; right: 28rpx;
top: calc(88rpx + env(safe-area-inset-top));
z-index: 50; z-index: 50;
margin: 12rpx 0 0; margin: 8rpx 0 0;
padding: 12rpx; padding: 12rpx;
border-radius: 28rpx; border-radius: 28rpx;
background: rgba(255, 255, 255, 0.72); background: rgba(255, 255, 255, 0.72);
+20 -1
View File
@@ -498,10 +498,17 @@ onShareAppMessage(() => {
/* ── Tab 切换 ── */ /* ── Tab 切换 ── */
.segment-wrap { .segment-wrap {
padding: 8rpx 0 20rpx; position: relative;
height: 148rpx;
flex-shrink: 0;
z-index: 20;
} }
.segment { .segment {
position: fixed;
left: 28rpx;
right: 28rpx;
z-index: 50;
display: flex; display: flex;
background: rgba(255, 255, 255, 0.82); background: rgba(255, 255, 255, 0.82);
padding: 6rpx; padding: 6rpx;
@@ -509,6 +516,18 @@ onShareAppMessage(() => {
gap: 6rpx; gap: 6rpx;
border: 1.5rpx solid rgba(52, 200, 160, 0.14); border: 1.5rpx solid rgba(52, 200, 160, 0.14);
box-shadow: 0 4rpx 16rpx rgba(52, 200, 160, 0.07); box-shadow: 0 4rpx 16rpx rgba(52, 200, 160, 0.07);
-webkit-backdrop-filter: blur(12px);
backdrop-filter: blur(12px);
}
.segment::before {
content: '';
position: absolute;
inset: -12rpx -8rpx -10rpx;
border-radius: 34rpx;
background: linear-gradient(180deg, rgba(230, 247, 242, 0.96) 0%, rgba(240, 251, 247, 0.88) 72%, rgba(240, 251, 247, 0) 100%);
z-index: -1;
pointer-events: none;
} }
.segment-item { .segment-item {