diff options
| author | Fuwn <[email protected]> | 2024-07-01 04:35:25 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-07-01 04:35:25 -0700 |
| commit | 5449d7986e28131785da86b9c83e553aba43c504 (patch) | |
| tree | 8f515f9b06ac65f0e7882d248354c57e1edef949 | |
| parent | c9b4623478c699b841eeda73d057dac462f40c61 (diff) | |
| download | mayu-5449d7986e28131785da86b9c83e553aba43c504.tar.xz mayu-5449d7986e28131785da86b9c83e553aba43c504.zip | |
feat(svg): pad to 5 by default
| -rw-r--r-- | src/svg.gleam | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/svg.gleam b/src/svg.gleam index aab2735..1efadaa 100644 --- a/src/svg.gleam +++ b/src/svg.gleam @@ -61,7 +61,7 @@ pub fn xml(theme, number) { theme, { let assert Ok(digits) = int.digits(number, 10) - let digits_padding = 6 - list.length(digits) + let digits_padding = 5 - list.length(digits) case digits_padding { n if n > 0 -> list.concat([list.repeat(0, digits_padding), digits]) |