Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix the More Block input width #8751
The current behaviour of the More block input element is to expand the width based on the length of the current content. Unfortunately, the current calculation (length + 1) doesn't allow for glyphs that are always going to be more than 1em in width.
This PR changes the calculation to be (length * 3), effectively allowing glyphs up to 3em in width to display correctly. While it is technically possible to construct even wider glyphs through the judicious use of modifiers (eg, "﷽"), this is not to my knowledge an actual meaningful character, so is unlikely to be a real use case.
To avoid unsightly overflow issues for super long labels encountered whilst testing, this PR also limits the