fix occasional flicker

This commit is contained in:
Athou
2026-02-22 14:36:25 +01:00
parent c9a7b9e17c
commit d838e8f28f

View File

@@ -55,7 +55,6 @@ export function FeedEntriesPage(props: Readonly<FeedEntriesPageProps>) {
) )
const sourceLabel = useAppSelector(state => state.entries.sourceLabel) const sourceLabel = useAppSelector(state => state.entries.sourceLabel)
const sourceWebsiteUrl = useAppSelector(state => state.entries.sourceWebsiteUrl) const sourceWebsiteUrl = useAppSelector(state => state.entries.sourceWebsiteUrl)
const loading = useAppSelector(state => state.entries.loading)
const hasMore = useAppSelector(state => state.entries.hasMore) const hasMore = useAppSelector(state => state.entries.hasMore)
const mobile = useMobile() const mobile = useMobile()
const sidebarVisible = useAppSelector(state => state.tree.sidebarVisible) const sidebarVisible = useAppSelector(state => state.tree.sidebarVisible)
@@ -125,7 +124,6 @@ export function FeedEntriesPage(props: Readonly<FeedEntriesPageProps>) {
return ( return (
// add some room at the bottom of the page in order to be able to scroll the current entry at the top of the page when expanding // add some room at the bottom of the page in order to be able to scroll the current entry at the top of the page when expanding
<Box mb={viewport.height * 0.7}> <Box mb={viewport.height * 0.7}>
{!loading && (
<Group className="cf-entries-title" wrap="nowrap"> <Group className="cf-entries-title" wrap="nowrap">
{sourceWebsiteUrl && ( {sourceWebsiteUrl && (
<a href={sourceWebsiteUrl} target="_blank" rel="noreferrer" className={classes.sourceWebsiteLink}> <a href={sourceWebsiteUrl} target="_blank" rel="noreferrer" className={classes.sourceWebsiteLink}>
@@ -144,7 +142,6 @@ export function FeedEntriesPage(props: Readonly<FeedEntriesPageProps>) {
</ActionIcon> </ActionIcon>
{showUnreadCount && <UnreadCount unreadCount={unreadCount} showIndicator={hasNewEntries} />} {showUnreadCount && <UnreadCount unreadCount={unreadCount} showIndicator={hasNewEntries} />}
</Group> </Group>
)}
<FeedEntries /> <FeedEntries />