mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-14 01:04:18 +08:00
fix(composer-emojis): Adjust width for overflower
This commit is contained in:
parent
0553b7bde3
commit
0c320d3a28
1 changed files with 2 additions and 1 deletions
|
@ -171,8 +171,9 @@ class EmojisComposerExtension extends ContenteditableExtension {
|
|||
maxLength = emojiOption.length;
|
||||
}
|
||||
}
|
||||
// TODO: Calculate width of words more accurately for a closer fit.
|
||||
const WIDTH_PER_CHAR = 8;
|
||||
return (maxLength + 8) * WIDTH_PER_CHAR;
|
||||
return (maxLength + 10) * WIDTH_PER_CHAR;
|
||||
}
|
||||
|
||||
static _emojiPickerHeight(emojiOptions) {
|
||||
|
|
Loading…
Reference in a new issue