Better mobile view

This commit is contained in:
Magnus Åhall 2026-06-02 22:50:15 +02:00
parent 1d75aa8c3e
commit 3bd0819cbc
4 changed files with 141 additions and 25 deletions

View file

@ -1,5 +1,14 @@
{{ define "page" }}
<script>
function showTree() {
const notes2 = document.getElementById('notes2')
notes2.classList.remove('hide-tree')
notes2.classList.add('show-tree')
}
</script>
<div id="notes2">
<div id="show-tree" onclick="showTree()">&gt;</div>
<div id="tree" tabindex=0></div>
<div id="main-page">
@ -11,7 +20,7 @@
<!-- Node editing -->
<div id="page-node">
<div id="crumbs"></div>
<n2-syncprogress></n2-syncprogress>
<!--n2-syncprogress></n2-syncprogress-->
<n2-nodeui id="note"></n2-nodeui>
</div>
@ -25,8 +34,6 @@
<link rel="stylesheet" type="text/css" href="/css/{{ .VERSION }}/notes2.css">
<script type="module">
import {NodeStore} from '/js/{{ .VERSION }}/node_store.mjs'
import {App} from "/js/{{ .VERSION }}/app.mjs"