1
0
mirror of https://github.com/flarum/core.git synced 2025-08-09 01:46:35 +02:00

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

This commit is contained in:
Davide Iadeluca
2024-11-19 18:18:11 +01:00
committed by GitHub
parent 9d00490591
commit 88abe63a8f

View File

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