Skip to content

Commit

Permalink
fix: change condition when unread label is shown in Scrubber (#4116)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideIadeluca authored Nov 19, 2024
1 parent 9d00490 commit 88abe63
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,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) {
Expand Down

0 comments on commit 88abe63

Please sign in to comment.