Skip to content

Commit abfbc45

Browse files
Add level check to fix opacity issue
1 parent ff4874c commit abfbc45

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/plugin/composables/levelColors.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ const levelPercentage: LevelPercentage = (colors, level, direction) => {
4545
percentage = 100;
4646
}
4747

48+
if (level === 0) {
49+
percentage = 100;
50+
}
51+
4852
return percentage;
4953
};
5054

0 commit comments

Comments
 (0)