Small UI changes

This commit is contained in:
Magnus Åhall 2026-06-04 08:42:54 +02:00
parent 44ee1ac94b
commit 12f8c019f0
5 changed files with 47 additions and 35 deletions

View file

@ -92,7 +92,7 @@ export class N2PageNodeUI extends CustomHTMLElement {
this.node.setContent(this.elNodeContent.value)
})
this.elIconHistory.addEventListener('click', ()=>_mbus.dispatch('SHOW_PAGE', { page: 'history' }))
this.elIconHistory.addEventListener('click', () => _mbus.dispatch('SHOW_PAGE', { page: 'history' }))
this.showMarkdown(true)
}// }}}
@ -106,9 +106,9 @@ export class N2PageNodeUI extends CustomHTMLElement {
}// }}}
takeFocus() {// {{{
if (this.showMarkdown()) {
this.elNodeMarkdown.focus()
this.elNodeMarkdown.focus({ preventScroll: true })
} else
this.elNodeContent.focus()
this.elNodeContent.focus({ preventScroll: true })
}// }}}
contentChanged(event) {//{{{