From 7c10fd7b6c9cb076eac08986cdbd7ae992821db2 Mon Sep 17 00:00:00 2001 From: Thomas Robert Date: Thu, 16 Jun 2022 17:15:07 +0200 Subject: [PATCH] UI improvement for hierarchy tree (#834) * style(hierarchy tree): improve responsivness Fix details on the bottom of the dialog Make the tree view take the rest of the available space of the dialog * style(hierarchy tree): distinguish buttons Distinguish between action buttons and remove origins tags-like button * typo(hierarchy tree): change button label and tips * fix(hierarchy tree): disable top node interactions * chore: update version/hash to v1.86.07 * chore: update version/hash to v1.86.08 * fix: bad hash versions * fix: update index.html to correct versions --- modules/dynamic/hierarchy-tree.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/modules/dynamic/hierarchy-tree.js b/modules/dynamic/hierarchy-tree.js index 032cbc4e..cd55c448 100644 --- a/modules/dynamic/hierarchy-tree.js +++ b/modules/dynamic/hierarchy-tree.js @@ -62,8 +62,18 @@ export function open(props) { } function appendStyleSheet() { - const style = document.createElement("style"); - style.textContent = /* css */ ` + const styles = /* css */ ` + + #hierarchyTree { + display: flex; + flex-direction: column; + justify-content: space-between; + } + + #hierarchyTree > svg { + height: 100%; + } + #hierarchyTree_selectedOrigins > button { margin: 0 2px; }