From 88abe63a8f2a387687ec960d159338b05a07ddb7 Mon Sep 17 00:00:00 2001 From: Davide Iadeluca <146922689+DavideIadeluca@users.noreply.github.com> Date: Tue, 19 Nov 2024 18:18:11 +0100 Subject: [PATCH] fix: change condition when `unread` label is shown in Scrubber (#4116) --- framework/core/js/src/forum/components/PostStreamScrubber.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/js/src/forum/components/PostStreamScrubber.js b/framework/core/js/src/forum/components/PostStreamScrubber.js index ba166bc674..4e2d96b18f 100644 --- a/framework/core/js/src/forum/components/PostStreamScrubber.js +++ b/framework/core/js/src/forum/components/PostStreamScrubber.js @@ -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) {