From bc2d1f1ef9e0cb3bceb86e3d91cc3122e8a607fd Mon Sep 17 00:00:00 2001 From: zadam Date: Wed, 1 May 2019 09:52:45 +0200 Subject: [PATCH] changes in grid for tabs --- src/public/stylesheets/desktop.css | 11 ++- src/public/stylesheets/style.css | 19 +---- src/views/desktop.ejs | 117 +---------------------------- src/views/details/detail.ejs | 33 -------- src/views/tabs.ejs | 68 +++++++++++++++++ src/views/title.ejs | 81 ++++++++++++++++++++ 6 files changed, 160 insertions(+), 169 deletions(-) delete mode 100644 src/views/details/detail.ejs create mode 100644 src/views/tabs.ejs create mode 100644 src/views/title.ejs diff --git a/src/public/stylesheets/desktop.css b/src/public/stylesheets/desktop.css index 67e49913a..d1c74b540 100644 --- a/src/public/stylesheets/desktop.css +++ b/src/public/stylesheets/desktop.css @@ -9,11 +9,9 @@ body { display: grid; grid-template-areas: "header header" "left-pane tabs" - "left-pane title" - "left-pane note-detail"; + "left-pane tab-container"; grid-template-rows: auto auto - auto 1fr; justify-content: center; @@ -30,6 +28,12 @@ body { grid-template-columns: 1fr !important; } +#tabs-container { + grid-area: tab-container; + min-height: 0; + min-height: 0; +} + #search-box { display: none; padding: 10px; @@ -131,6 +135,7 @@ li.dropdown-submenu:hover > ul.dropdown-menu { } #note-detail-wrapper { + font-family: var(--detail-font-family); font-size: var(--detail-font-size); } diff --git a/src/public/stylesheets/style.css b/src/public/stylesheets/style.css index c86e092e4..08d929e51 100644 --- a/src/public/stylesheets/style.css +++ b/src/public/stylesheets/style.css @@ -48,14 +48,6 @@ button.close { color: var(--main-text-color) !important; } -#title-container { - grid-area: title; -} - -#tabs-container { - grid-area: tabs; -} - #note-title { margin-left: 15px; margin-right: 10px; @@ -112,14 +104,9 @@ ul.fancytree-container { } #note-detail-wrapper { - position: relative; - overflow: hidden; - grid-area: note-detail; - padding-left: 10px; - padding-top: 10px; display: flex; flex-direction: column; - font-family: var(--detail-font-family); + height: 100%; } #note-detail-component-wrapper { @@ -150,6 +137,7 @@ ul.fancytree-container { box-shadow: none !important; /* This is because with empty content height of editor is 0 and it's impossible to click into it */ min-height: 200px; + padding-top: 10px; overflow: auto; font-family: var(--detail-text-font-family); } @@ -723,9 +711,6 @@ div[data-notify="container"] { } #saved-indicator { - position: absolute; - right: 10px; - top: -7px; font-size: 150%; color: var(--main-text-color); z-index: 100; diff --git a/src/views/desktop.ejs b/src/views/desktop.ejs index a111cea56..2fce2eadf 100644 --- a/src/views/desktop.ejs +++ b/src/views/desktop.ejs @@ -150,122 +150,7 @@ -
-
-
-
-
-
Google
-
-
-
-
-
-
-
Facebook
-
-
-
-
-
- - -
-
- -
-
- - - - -
- - - - -
- - - -
- -     - -
- - - -
-
-
-
- - <% include details/detail.ejs %> + <% include tabs.ejs %> <% include dialogs/about.ejs %> <% include dialogs/add_link.ejs %> diff --git a/src/views/details/detail.ejs b/src/views/details/detail.ejs deleted file mode 100644 index f6157d97f..000000000 --- a/src/views/details/detail.ejs +++ /dev/null @@ -1,33 +0,0 @@ -
- - -
- -
- -
-
- -
- - <% include search.ejs %> - - <% include render.ejs %> - - <% include file.ejs %> - - <% include image.ejs %> - - <% include relation_map.ejs %> - - <% include protected_session_password.ejs %> - -
-
- -
- - - -
-
\ No newline at end of file diff --git a/src/views/tabs.ejs b/src/views/tabs.ejs new file mode 100644 index 000000000..763fd0a49 --- /dev/null +++ b/src/views/tabs.ejs @@ -0,0 +1,68 @@ +
+
+
+
+
Google
+
+
+
+
+
+
+
Facebook
+
+
+
+
+
+ + +
+ +
+
+ <% include title.ejs %> + +
+ +
+ +
+
+ +
+ + <% include details/search.ejs %> + + <% include details/render.ejs %> + + <% include details/file.ejs %> + + <% include details/image.ejs %> + + <% include details/relation_map.ejs %> + + <% include details/protected_session_password.ejs %> + +
+
+ +
+ + + +
+
+
\ No newline at end of file diff --git a/src/views/title.ejs b/src/views/title.ejs new file mode 100644 index 000000000..ae594a408 --- /dev/null +++ b/src/views/title.ejs @@ -0,0 +1,81 @@ +
+
+ + + + + + +
+ + + + +
+ + + +
+ +     + +
+ + + +
+
+
+
\ No newline at end of file