v3: localization fixes, char counters & limits on all text fields, ux fixes

This commit is contained in:
khannurien
2026-04-03 19:47:37 +00:00
parent 0ce80398a4
commit a69788c15b
48 changed files with 1133 additions and 305 deletions

5
src/utils/charCount.ts Normal file
View File

@@ -0,0 +1,5 @@
export function charCountClass(len: number, max: number): string {
if (len >= max) return " text-editor-count--danger";
if (len >= max * 0.85) return " text-editor-count--warn";
return "";
}