mirror of
https://github.com/hex248/sprint.git
synced 2026-02-09 02:33:02 +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",
|
: "text-muted-foreground",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{currentLength}/{maxLength}
|
{String(currentLength).padStart(String(maxLength).length, "0")}/{maxLength}
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user