fix: change condition when unread label is shown in Scrubber (#4185)

This commit is contained in:
Davide Iadeluca 2025-02-11 20:25:26 +01:00 committed by GitHub
parent a34a5d4d62
commit f13dc05866
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,7 +42,7 @@ export default class PostStreamScrubber extends Component {
const newStyle = {
top: 100 - unreadPercent * 100 + '%',
height: unreadPercent * 100 + '%',
opacity: unreadPercent ? 1 : 0,
opacity: unreadPercent > 0 ? 1 : 0,
};
if (vnode.state.oldStyle) {