From 2edf9064021f3ad4041ae37b2a41f9590e57ee51 Mon Sep 17 00:00:00 2001 From: quenousimporte <76260127+quenousimporte@users.noreply.github.com> Date: Thu, 26 Jan 2023 15:55:21 +0100 Subject: [PATCH] refactor: resize function removed: vault name in title bar --- main.js | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/main.js b/main.js index e25f564..2e3404d 100644 --- a/main.js +++ b/main.js @@ -1322,16 +1322,10 @@ function before(nb) function resize() { - if (md.clientHeight >= md.scrollHeight) return; - - //console.log("resize"); - md.style.height = md.scrollHeight + 'px'; - - /*md.rows = (md.value.match(/\n/g) || []).length + 1; - while (md.scrollHeight > md.clientHeight) + if (md.clientHeight < md.scrollHeight) { - md.rows *= 1.5; - }*/ + md.style.height = md.scrollHeight + 'px'; + } } function putontop() @@ -1646,12 +1640,12 @@ function mainkeydownhandler() function setwindowtitle() { - document.title = currentvault + " -"; + document.title = ""; if (currenttag) { - document.title += " tag:" + currenttag + " -"; + document.title += "[" + currenttag + "] -\xa0"; } - document.title += " " + currentnote.title; + document.title += currentnote.title; } function ontitlechange()