Skip to content

Commit 03caaa0

Browse files
committed
fix: set uncategorized notification isVisible ratio to 0.3, disabled when category query param set
1 parent b8d65fc commit 03caaa0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/UncategorizedNotification.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ export default {
2525
: 0;
2626
},
2727
isVisible() {
28-
return this.ratio > 0.2;
28+
// if ratio is > 0.3, show it // TODO: make configurable
29+
// if there's a category filter (url has category query param), don't show it
30+
return this.ratio > 0.3 && !this.$route.query.category;
2931
},
3032
},
3133
};

0 commit comments

Comments
 (0)