From 66cee8daa42460e9c9e9bdbd2182c079e23a2bf2 Mon Sep 17 00:00:00 2001 From: azivner Date: Fri, 13 Apr 2018 19:58:33 -0400 Subject: [PATCH] restructuring CSS grid/flex which fixes jumpy scrolling in tree --- src/public/stylesheets/style.css | 13 +++------- src/views/index.ejs | 42 ++++++++++++++++---------------- 2 files changed, 24 insertions(+), 31 deletions(-) diff --git a/src/public/stylesheets/style.css b/src/public/stylesheets/style.css index f37a9550e..463adcdd7 100644 --- a/src/public/stylesheets/style.css +++ b/src/public/stylesheets/style.css @@ -4,18 +4,12 @@ display: grid; grid-template-areas: "header header" - "tree-actions title" - "search note-detail" - "tree note-detail" - "parent-list note-detail" - "parent-list label-list"; + "left-pane title" + "left-pane note-detail"; grid-template-columns: 2fr 5fr; grid-template-rows: auto auto - auto - 1fr - auto - auto; + 1fr; justify-content: center; grid-gap: 10px; @@ -291,7 +285,6 @@ div.ui-tooltip { .cm-matchhighlight {background-color: #eeeeee} #label-list { - grid-area: label-list; color: #777777; border-top: 1px solid #eee; padding: 5px; display: none; diff --git a/src/views/index.ejs b/src/views/index.ejs index f114c9e3a..cfd98145e 100644 --- a/src/views/index.ejs +++ b/src/views/index.ejs @@ -38,7 +38,7 @@ -
+
@@ -54,28 +54,28 @@
-
-