Skip to content

Commit

Permalink
Fix gradient direction
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuuuube committed Nov 5, 2024
1 parent 18cfe32 commit 94ce0b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/js/display/display-anki.js
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ export class DisplayAnki {
const gradientSliceSize = 100 / flags.size;
let currentGradientPercent = 0;

let gradient = 'linear-gradient(to left,';
let gradient = 'linear-gradient(to right,';
for (const flag of flags) {
const flagRGB = flagColors[flag];
gradient += 'rgb(' + flagRGB.red + ',' + flagRGB.green + ',' + flagRGB.blue + ') ' + currentGradientPercent + '%,';
Expand Down

0 comments on commit 94ce0b8

Please sign in to comment.