Skip to content

Commit 50dbc68

Browse files
authored
Merge pull request #1061 from Balut-moko/master
TopcoderLikeCircle background bug fix
2 parents ed07e13 + 02d7ed7 commit 50dbc68

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

atcoder-problems-frontend/src/components/TopcoderLikeCircle.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,9 @@ const getStyleOptions = (
3232
const colorCode = getRatingColorCode(color, theme);
3333
return {
3434
borderColor: colorCode,
35-
background: `linear-gradient(to top, \
36-
${colorCode} 0%, \
35+
background: `border-box linear-gradient(to top, \
3736
${colorCode} ${fillRatio * 100}%, \
38-
rgba(0,0,0,0) ${fillRatio * 100}%, \
39-
rgba(0,0,0,0) 100%)`,
37+
rgba(0,0,0,0) ${fillRatio * 100}%)`,
4038
};
4139
}
4240
};

0 commit comments

Comments
 (0)