fix(frontend): resolve inbox scrolling top issue

This commit is contained in:
yassinedorbozgithub 2025-05-09 08:26:36 +01:00
parent c2cbb6d482
commit 60fa9482c5

View File

@ -57,10 +57,19 @@ export const SubscribersList = (props: {
</Grid>
{subscribers?.length > 0 ? (
<ConversationList
scrollable
style={{ overflow: "auto" }}
loading={isFetching}
loadingMore={isFetching}
onYReachEnd={handleLoadMore}
onScroll={({ target }) => {
const container = target as HTMLDivElement;
if (
container.scrollTop + container.clientHeight >=
container.scrollHeight
) {
handleLoadMore();
}
}}
>
{subscribers.map((subscriber) => (
<Conversation