diff --git a/static/css/main.css b/static/css/main.css index 63c1a4e..d56561f 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -320,6 +320,16 @@ header .menu { border: 1px solid #ddd; padding: 4px 8px; } +#markdown code { + background: #e6eeee; + padding: 4px; + border-radius: 4px; +} +#markdown pre > code { + background: unset; + padding: 0px; + border-radius: 0px; +} /* ============================================================= * * Textarea replicates the height of an element expanding height * * ============================================================= */ diff --git a/static/images/markdown-hollow.svg b/static/images/markdown-hollow.svg new file mode 100644 index 0000000..bd2e424 --- /dev/null +++ b/static/images/markdown-hollow.svg @@ -0,0 +1,49 @@ + + + + + + + diff --git a/static/js/node.mjs b/static/js/node.mjs index 4a3332f..1c76682 100644 --- a/static/js/node.mjs +++ b/static/js/node.mjs @@ -12,6 +12,7 @@ export class NodeUI extends Component { this.menu = signal(false) this.node = signal(null) this.nodeContent = createRef() + this.nodeProperties = createRef() this.keys = signal([]) this.page = signal('node') @@ -80,7 +81,7 @@ export class NodeUI extends Component { break case 'node-properties': - page = html`<${NodeProperties} nodeui=${this} />` + page = html`<${NodeProperties} ref=${this.nodeProperties} nodeui=${this} />` break case 'keys': @@ -105,7 +106,7 @@ export class NodeUI extends Component { this.saveNode()}> document.getElementById('app').classList.toggle('toggle-tree')} /> Notes - { evt.stopPropagation(); this.toggleMarkdown() }}> + { evt.stopPropagation(); this.toggleMarkdown() }}> { evt.stopPropagation(); this.showPage('search') }}> this.createNode(evt)}> { evt.stopPropagation(); this.showPage('keys') }}> @@ -160,7 +161,10 @@ export class NodeUI extends Component { break case 'S': - this.saveNode() + if (this.page.value == 'node') + this.saveNode() + else if (this.page.value == 'node-properties') + this.nodeProperties.current.save() break case 'U': diff --git a/static/less/main.less b/static/less/main.less index 30114dc..670bbfa 100644 --- a/static/less/main.less +++ b/static/less/main.less @@ -365,6 +365,18 @@ header { padding: 4px 8px; } } + + code { + background: #e6eeee; + padding: 4px; + border-radius: 4px; + } + + pre > code { + background: unset; + padding: 0px; + border-radius: 0px; + } } /* ============================================================= * diff --git a/version b/version index 62ccda5..9a2a0e2 100644 --- a/version +++ b/version @@ -1 +1 @@ -v19 +v20