diff --git a/static/css/notes2.css b/static/css/notes2.css index d9b6170..5a3e0dd 100644 --- a/static/css/notes2.css +++ b/static/css/notes2.css @@ -140,7 +140,7 @@ html { n2-tree { .el-treenodes { - margin: 24px 32px 32px 32px; + margin: 32px; } } @@ -199,10 +199,6 @@ html { #main-page { display: contents; - &:focus-within { - background-color: #faf; - } - &.node { #page-node { display: contents; @@ -470,46 +466,3 @@ dialog.op { } } } - - -/* ------------------------------------------- * - * Whole page is 100vh with scrolling sections * - * ------------------------------------------- */ -#app.full-height { - #notes2 { - height: 100vh; - - - } - - #tree { - n2-tree { - .el-treenodes { - height: calc(100vh - 64px - 64px); - margin: 0px; - padding: 12px 32px 32px 32px; - overflow-y: auto; - - &::-webkit-scrollbar { - display: none; - } - - -ms-overflow-style: none; - scrollbar-width: none; - } - } - } - - n2-nodeui { - .el-node-markdown { - overflow-y: scroll; - - &::-webkit-scrollbar { - display: none; - } - - -ms-overflow-style: none; - scrollbar-width: none; - } - } -} diff --git a/static/images/leaf.svg b/static/images/leaf.svg index 9d200c3..306a2a0 100644 --- a/static/images/leaf.svg +++ b/static/images/leaf.svg @@ -8,7 +8,7 @@ version="1.1" id="svg1" sodipodi:docname="leaf.svg" - inkscape:version="1.4.4 (dcaf3e7d9e, 2026-05-05)" + inkscape:version="1.4.2 (ebf0e94, 2025-05-08)" xml:space="preserve" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" @@ -23,13 +23,13 @@ inkscape:pagecheckerboard="0" inkscape:deskcolor="#d1d1d1" inkscape:document-units="px" - inkscape:zoom="31.614857" - inkscape:cx="5.0609117" - inkscape:cy="9.5524708" - inkscape:window-width="2190" - inkscape:window-height="1401" - inkscape:window-x="1463" - inkscape:window-y="0" + inkscape:zoom="11.17754" + inkscape:cx="8.0965937" + inkscape:cy="22.903072" + inkscape:window-width="1916" + inkscape:window-height="1161" + inkscape:window-x="0" + inkscape:window-y="18" inkscape:window-maximized="1" inkscape:current-layer="layer1" showgrid="false" />folder-open-outlinenotebook-outlinetext-box-outline _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({ preventScroll: true }) + this.elNodeMarkdown.focus() } else - this.elNodeContent.focus({ preventScroll: true }) + this.elNodeContent.focus() }// }}} contentChanged(event) {//{{{ diff --git a/static/js/tree.mjs b/static/js/tree.mjs index 928d60d..397dfc9 100644 --- a/static/js/tree.mjs +++ b/static/js/tree.mjs @@ -64,6 +64,8 @@ export class N2Tree extends CustomHTMLElement { this.tmpl.innerHTML = ` +