From f13dc058667540ce14f58eb25eef151ba14f524b Mon Sep 17 00:00:00 2001 From: Davide Iadeluca <146922689+DavideIadeluca@users.noreply.github.com> Date: Tue, 11 Feb 2025 20:25:26 +0100 Subject: [PATCH] fix: change condition when `unread` label is shown in Scrubber (#4185) --- 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 7da2c42e1..b6955b611 100644 --- a/framework/core/js/src/forum/components/PostStreamScrubber.js +++ b/framework/core/js/src/forum/components/PostStreamScrubber.js @@ -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) {