so there’s 4 bytes, but a single character, which is wider than 1em
And as said, there’s (probably) no way to know how wide an arbitrary string is ahead of time
Yes. The ch is not good enough, either. Also with additional letters for padding covering. Maybe I will try with ic as you suggest. But for now we decided to set dialog width do 50vw as a temporary solution.
for what it’s worth, I just tested width: 12ic on a TextField, and if I remove the padding in the field I do get quite exactly 12 characters to fit

With the default padding, giving it an extra 2ic is more than sufficient

Right, It looks good. I will check it ! ![]()
Thanks again @useful-whale – we used your solution ![]()