From c58dc5536ac99c0d36cad2fa3a10429220d9c84e Mon Sep 17 00:00:00 2001 From: Davide Iadeluca Date: Mon, 18 Nov 2024 07:15:42 +0100 Subject: [PATCH] fix: change condition when `unread` label is shown in Scrubber --- 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) {