From 434ea3258e26d3fbcc50d641e41a2dd25238e380 Mon Sep 17 00:00:00 2001 From: Antonella Sgarlatta Date: Wed, 2 Jun 2021 20:08:02 -0300 Subject: [PATCH] fix: tags container margins --- .../javascripts/ui_models/app_state/active_note_state.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/ui_models/app_state/active_note_state.ts b/app/assets/javascripts/ui_models/app_state/active_note_state.ts index 0982b7411..abfee2432 100644 --- a/app/assets/javascripts/ui_models/app_state/active_note_state.ts +++ b/app/assets/javascripts/ui_models/app_state/active_note_state.ts @@ -94,11 +94,11 @@ export class ActiveNoteState { const defaultFontSize = parseFloat(window.getComputedStyle( document.documentElement ).fontSize); - const overflowMargin = defaultFontSize * 5; + const margins = defaultFontSize * 1.5; const editorWidth = document.getElementById(EDITOR_ELEMENT_ID)?.clientWidth; if (editorWidth) { this.appState.activeNote.setTagsContainerMaxWidth( - editorWidth - overflowMargin + editorWidth - margins ); } }