fix: tags container margins

This commit is contained in:
Antonella Sgarlatta
2021-06-02 20:08:02 -03:00
parent 4faebe4ffd
commit 434ea3258e

View File

@@ -94,11 +94,11 @@ export class ActiveNoteState {
const defaultFontSize = parseFloat(window.getComputedStyle( const defaultFontSize = parseFloat(window.getComputedStyle(
document.documentElement document.documentElement
).fontSize); ).fontSize);
const overflowMargin = defaultFontSize * 5; const margins = defaultFontSize * 1.5;
const editorWidth = document.getElementById(EDITOR_ELEMENT_ID)?.clientWidth; const editorWidth = document.getElementById(EDITOR_ELEMENT_ID)?.clientWidth;
if (editorWidth) { if (editorWidth) {
this.appState.activeNote.setTagsContainerMaxWidth( this.appState.activeNote.setTagsContainerMaxWidth(
editorWidth - overflowMargin editorWidth - margins
); );
} }
} }