fix: re-introduce wysiwyg width offset (#8014)

This commit is contained in:
Marcel Mraz 2024-05-13 16:38:21 +01:00 committed by GitHub
parent 273ba803d9
commit dc66261c19
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -226,6 +226,8 @@ export const textWysiwyg = ({
if (!container) {
maxWidth = (appState.width - 8 - viewportX) / appState.zoom.value;
textElementWidth = Math.min(textElementWidth, maxWidth);
} else {
textElementWidth += 0.5;
}
// Make sure text editor height doesn't go beyond viewport