1
0
mirror of https://github.com/flarum/core.git synced 2025-08-02 22:47:33 +02:00

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

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) {