From fcd27bd186e67e3913092a0a08cc26ff4448e39f Mon Sep 17 00:00:00 2001 From: Juraci Date: Fri, 12 Jul 2024 12:34:41 -0300 Subject: [PATCH] refactor css grid to keep headers when scrolling --- src/views/HomeIndex.vue | 17 ++++-- src/views/NodeShow.vue | 132 +++++++++++++++++++++------------------- 2 files changed, 82 insertions(+), 67 deletions(-) diff --git a/src/views/HomeIndex.vue b/src/views/HomeIndex.vue index 1997574..f6dc0bb 100644 --- a/src/views/HomeIndex.vue +++ b/src/views/HomeIndex.vue @@ -55,7 +55,9 @@ const handleNodeNotFound = () => { @click="handleAddNode" /> - +
+ +
{ .side-panel { display: flex; flex-direction: column; - gap: 10px; - height: 100%; - max-height: 98vh; - overflow: auto; + gap: 0.5rem; } .side-panel-header { display: flex; justify-content: flex-end; } +.side-panel-content { + display: flex; + flex-direction: column; + gap: 0.5rem; + height: 100%; + max-height: 94vh; + overflow: auto; +} diff --git a/src/views/NodeShow.vue b/src/views/NodeShow.vue index f562550..a1a856d 100644 --- a/src/views/NodeShow.vue +++ b/src/views/NodeShow.vue @@ -72,65 +72,67 @@ const handleAddChildNode = () => { @click="emit('delete', node.uuid)" /> - -
- {{ node.title || titlePlaceHolder }} -
- -