diff --git a/app/static/css/editor.css b/app/static/css/editor.css index 072aeec..aac1850 100644 --- a/app/static/css/editor.css +++ b/app/static/css/editor.css @@ -1,6 +1,7 @@ .editor .btn-group { display: flex; justify-content: space-between; + margin: 5px; } .editor .btn-group button { background-color: var(--background); @@ -12,6 +13,9 @@ .editor .btn-group button > svg > rect { fill: var(--icons); } +.editor textarea { + min-height: 10rem; +} .separator { display: inline-block; width: 0; diff --git a/app/static/less/editor.less b/app/static/less/editor.less index 1f4ce94..f5a9f82 100644 --- a/app/static/less/editor.less +++ b/app/static/less/editor.less @@ -4,6 +4,7 @@ & .btn-group { display: flex; justify-content: space-between; + margin: 5px; & button { background-color: var(--background); @@ -17,6 +18,10 @@ } } } + + & textarea { + min-height: 10rem; + } } // From gitea diff --git a/app/static/scripts/editor.js b/app/static/scripts/editor.js index 231ae53..d12b403 100644 --- a/app/static/scripts/editor.js +++ b/app/static/scripts/editor.js @@ -15,6 +15,7 @@ ta = document.querySelector(".editor textarea"); ta.addEventListener('keydown', function(e) { let keyCode = e.keyCode || e.which; if (keyCode == 9) { + // TODO Add one tab to selected text without replacing it e.preventDefault(); let start = e.target.selectionStart;