From e4e9981149fb1ad5c3ecfff4f9422c2fca768d8c Mon Sep 17 00:00:00 2001 From: Joris van Zundert Date: Thu, 23 May 2024 23:45:18 +0200 Subject: [PATCH] fix: fixes #209 and #93 --- frontend/www/src/css/dashboard-stemmaweb.css | 1 - .../tradition/section/sectionList.js | 1 + .../tradition/stemma/stemmaButtons.js | 2 +- .../tradition/stemma/stemmaRenderer.js | 26 ++++++++++++++----- .../dashboard/tradition/traditionList.js | 10 ++++--- 5 files changed, 28 insertions(+), 12 deletions(-) diff --git a/frontend/www/src/css/dashboard-stemmaweb.css b/frontend/www/src/css/dashboard-stemmaweb.css index b4ad9941..594d6833 100644 --- a/frontend/www/src/css/dashboard-stemmaweb.css +++ b/frontend/www/src/css/dashboard-stemmaweb.css @@ -173,7 +173,6 @@ edit-stemma-buttons a.greyed-out div { #graph-area { background-color: white; width: 100%; - /* height: 40vw; */ height: 90%; padding: 1em; } diff --git a/frontend/www/src/js/modules/dashboard/tradition/section/sectionList.js b/frontend/www/src/js/modules/dashboard/tradition/section/sectionList.js index f6e8348d..a8743753 100644 --- a/frontend/www/src/js/modules/dashboard/tradition/section/sectionList.js +++ b/frontend/www/src/js/modules/dashboard/tradition/section/sectionList.js @@ -126,6 +126,7 @@ class SectionList extends HTMLElement { (tradition) => { return tradition.id == traditionId } ) ); + TraditionList.highlightFolderSelectedTradition( traditionId ); SECTION_STORE.setSelectedSection( section ); } diff --git a/frontend/www/src/js/modules/dashboard/tradition/stemma/stemmaButtons.js b/frontend/www/src/js/modules/dashboard/tradition/stemma/stemmaButtons.js index 3b027529..4edfb371 100644 --- a/frontend/www/src/js/modules/dashboard/tradition/stemma/stemmaButtons.js +++ b/frontend/www/src/js/modules/dashboard/tradition/stemma/stemmaButtons.js @@ -60,7 +60,7 @@ class StemmaButtons extends HTMLElement { render() { this.innerHTML = ` -
+