fix: tags container margins
This commit is contained in:
@@ -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
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user