fix: fix tags container max width

This commit is contained in:
Antonella Sgarlatta
2021-06-02 20:30:03 -03:00
parent 30ee2e90b4
commit 9be9ba2afc
3 changed files with 6 additions and 6 deletions

View File

@@ -105,14 +105,10 @@ export class ActiveNoteState {
reloadTagsContainerMaxWidth(): void {
const EDITOR_ELEMENT_ID = 'editor-column';
const defaultFontSize = parseFloat(window.getComputedStyle(
document.documentElement
).fontSize);
const margins = defaultFontSize * 1.5;
const editorWidth = document.getElementById(EDITOR_ELEMENT_ID)?.clientWidth;
if (editorWidth) {
this.appState.activeNote.setTagsContainerMaxWidth(
editorWidth - margins
editorWidth
);
}
}