mirror of
https://github.com/flarum/framework.git
synced 2025-02-19 15:42:45 +08:00
fix: change condition when unread
label is shown in Scrubber (#4185)
This commit is contained in:
parent
a34a5d4d62
commit
f13dc05866
|
@ -42,7 +42,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) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user