fix(web): 渐隐遮罩不吃布局高度(抵消 gap)
- margin-bottom 改为 -32px - gap,首卡回到 148,滚动高度回到 979
This commit is contained in:
@@ -165,7 +165,8 @@
|
|||||||
top: 0;
|
top: 0;
|
||||||
z-index: 5;
|
z-index: 5;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
margin-bottom: -32px;
|
/* 抵消自身高度 + 父容器 gap,避免把首张卡片往下顶 */
|
||||||
|
margin-bottom: calc(-32px - var(--su-space-5));
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
background: linear-gradient(to bottom, var(--su-bg-page) 0%, transparent 100%);
|
background: linear-gradient(to bottom, var(--su-bg-page) 0%, transparent 100%);
|
||||||
|
|||||||
Reference in New Issue
Block a user