diff --git a/src/pages/SnsPage.scss b/src/pages/SnsPage.scss index 98c2286..b2e77b4 100644 --- a/src/pages/SnsPage.scss +++ b/src/pages/SnsPage.scss @@ -23,7 +23,7 @@ ========================================= */ .sns-main-viewport { flex: 1; - overflow-y: scroll; + overflow: hidden; position: relative; display: flex; justify-content: center; @@ -35,7 +35,9 @@ padding: 20px 24px 60px 24px; display: flex; flex-direction: column; - gap: 24px; + gap: 0; + min-height: 0; + height: 100%; } .feed-header { @@ -44,9 +46,7 @@ justify-content: space-between; margin-bottom: 8px; padding: 0 4px; - position: sticky; - top: 0; - z-index: 20; + z-index: 2; background: var(--sns-bg-color); border-bottom: 1px solid var(--border-color); padding-top: 10px; @@ -109,6 +109,13 @@ } } +.sns-posts-scroll { + flex: 1; + min-height: 0; + overflow-y: auto; + padding-top: 16px; +} + .posts-list { display: flex; flex-direction: column; diff --git a/src/pages/SnsPage.tsx b/src/pages/SnsPage.tsx index 6416700..dc1d86f 100644 --- a/src/pages/SnsPage.tsx +++ b/src/pages/SnsPage.tsx @@ -360,7 +360,7 @@ export default function SnsPage() { return (
未找到相关动态
- {(selectedUsernames.length > 0 || searchKeyword || jumpTargetDate) && ( - - )} +未找到相关动态
+ {(selectedUsernames.length > 0 || searchKeyword || jumpTargetDate) && ( + + )} +