mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
scroll only if the entry doesn't entirely fit on screen (same as commafeed v1)
This commit is contained in:
@@ -58,6 +58,7 @@ export function FeedEntry(props: FeedEntryProps) {
|
||||
setTimeout(() => {
|
||||
if (!ref.current) return
|
||||
if (!props.expanded) return
|
||||
if (Constants.layout.isTopVisible(ref.current) && Constants.layout.isBottomVisible(ref.current)) return
|
||||
|
||||
document.getElementById(Constants.dom.mainScrollAreaId)?.scrollTo({
|
||||
// having a small gap between the top of the content and the top of the page is sexier
|
||||
|
||||
Reference in New Issue
Block a user