mirror of
https://github.com/hex248/sprint.git
synced 2026-02-07 18:23:03 +00:00
pad the start of the currentLength with zeroes such that it doesn't change physical size with larger input
This commit is contained in:
@@ -44,7 +44,7 @@ function Input({
|
||||
: "text-muted-foreground",
|
||||
)}
|
||||
>
|
||||
{currentLength}/{maxLength}
|
||||
{String(currentLength).padStart(String(maxLength).length, "0")}/{maxLength}
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user