Max characters limit is for ASCII characters

This commit is contained in:
FooIbar authored and tarsin committed 2023-07-05 07:20:36 +08:00
1 parent 4cf698a10a
commit 4905c955bc
1 file changed
+1 -1
@@ -226,7 +226,7 @@ class DialogState {
},
supportingText = {
Text(
text = "${note.length} / $maxChar",
text = "${note.toByteArray().size} / $maxChar",
modifier = Modifier.fillMaxWidth(),
textAlign = TextAlign.End,
)