From 398a0bce5ef0975b81c6db3ec9dadfeea5321183 Mon Sep 17 00:00:00 2001 From: azivner Date: Sun, 24 Sep 2017 11:34:16 -0400 Subject: [PATCH] moved message area next to note title --- src/templates/app.html | 18 ++++++++---------- static/js/utils.js | 4 ++-- static/style.css | 6 +----- 3 files changed, 11 insertions(+), 17 deletions(-) diff --git a/src/templates/app.html b/src/templates/app.html index 497e25b17..96ecb7036 100644 --- a/src/templates/app.html +++ b/src/templates/app.html @@ -5,11 +5,6 @@ Notecase web app -
  - - -
-

@@ -59,14 +54,17 @@

-
+ + + + + +   + +
- -
- -
diff --git a/static/js/utils.js b/static/js/utils.js index 3ae17c03e..98140d8c5 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -1,7 +1,7 @@ function message(str) { const top = $("#top-message"); - top.fadeIn(1500); + top.fadeIn(1500).css("display","inline-block"); top.html(str); top.fadeOut(1500); } @@ -9,7 +9,7 @@ function message(str) { function error(str) { const error = $("#error-message"); - error.show(); + error.show().css("display","inline-block"); error.html(str); error.fadeOut(10000); } diff --git a/static/style.css b/static/style.css index ff09cc3ba..c94bee948 100644 --- a/static/style.css +++ b/static/style.css @@ -17,6 +17,7 @@ } #error-message { + margin-top: 2px; display: none; /* initial state is hidden */ background-color: red; color: white; @@ -71,11 +72,6 @@ span.fancytree-node.encrypted.fancytree-folder > span.fancytree-icon { display: none; } -#encryptButton img, #decryptButton img { - top: -5px; - position: relative; -} - body { display: grid; height: 100vh;