mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-03-25 07:16:51 +00:00
fix(sns): keep header area always visible
This commit is contained in:
@@ -23,7 +23,7 @@
|
|||||||
========================================= */
|
========================================= */
|
||||||
.sns-main-viewport {
|
.sns-main-viewport {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
overflow-y: scroll;
|
overflow: hidden;
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
@@ -35,7 +35,9 @@
|
|||||||
padding: 20px 24px 60px 24px;
|
padding: 20px 24px 60px 24px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 24px;
|
gap: 0;
|
||||||
|
min-height: 0;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.feed-header {
|
.feed-header {
|
||||||
@@ -44,9 +46,7 @@
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
margin-bottom: 8px;
|
margin-bottom: 8px;
|
||||||
padding: 0 4px;
|
padding: 0 4px;
|
||||||
position: sticky;
|
z-index: 2;
|
||||||
top: 0;
|
|
||||||
z-index: 20;
|
|
||||||
background: var(--sns-bg-color);
|
background: var(--sns-bg-color);
|
||||||
border-bottom: 1px solid var(--border-color);
|
border-bottom: 1px solid var(--border-color);
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
@@ -109,6 +109,13 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sns-posts-scroll {
|
||||||
|
flex: 1;
|
||||||
|
min-height: 0;
|
||||||
|
overflow-y: auto;
|
||||||
|
padding-top: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
.posts-list {
|
.posts-list {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|||||||
@@ -360,7 +360,7 @@ export default function SnsPage() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="sns-page-layout">
|
<div className="sns-page-layout">
|
||||||
<div className="sns-main-viewport" onScroll={handleScroll} onWheel={handleWheel} ref={postsContainerRef}>
|
<div className="sns-main-viewport">
|
||||||
<div className="sns-feed-container">
|
<div className="sns-feed-container">
|
||||||
<div className="feed-header">
|
<div className="feed-header">
|
||||||
<div className="feed-header-main">
|
<div className="feed-header-main">
|
||||||
@@ -417,6 +417,7 @@ export default function SnsPage() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div className="sns-posts-scroll" onScroll={handleScroll} onWheel={handleWheel} ref={postsContainerRef}>
|
||||||
{loadingNewer && (
|
{loadingNewer && (
|
||||||
<div className="status-indicator loading-newer">
|
<div className="status-indicator loading-newer">
|
||||||
<RefreshCw size={16} className="spinning" />
|
<RefreshCw size={16} className="spinning" />
|
||||||
@@ -491,6 +492,7 @@ export default function SnsPage() {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<SnsFilterPanel
|
<SnsFilterPanel
|
||||||
searchKeyword={searchKeyword}
|
searchKeyword={searchKeyword}
|
||||||
|
|||||||
Reference in New Issue
Block a user