aboutsummaryrefslogtreecommitdiff
path: root/src/App.vue
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-05-28 11:30:32 +1000
committerTerry Truong <terry06890@gmail.com>2022-05-28 11:30:32 +1000
commit9f0dcdea1049a59cd1fb4f0872edee1b7a87a4e6 (patch)
tree3bb51b1bf2fd4ce1f25522b60b1dfbb17d8a4811 /src/App.vue
parent14f20c9e4e27bf0e57b06c7251e17bef9ad10c67 (diff)
Fix tree-trimming to not discard certain nodes
Was trimming off nodes without an image/desc/reduced_tree_presence, including those with a descdendant that has them. Was using a linked-image association to prevent this, but this wasn't reliable.
Diffstat (limited to 'src/App.vue')
-rw-r--r--src/App.vue10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/App.vue b/src/App.vue
index 9fda4de..6f8f7a8 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -65,7 +65,7 @@ const defaultUiOpts = {
shadowFocused: '0 0 1px 2px orange',
infoIconSz: 18, //px
infoIconMargin: 2, //px
- tipThresholds: [[1, 'greenyellow'], [30, 'orange'], [100, 'red']],
+ tipThresholds: [[1, 'greenyellow'], [100, 'orange'], [1000, 'red']],
headerColor: '#fafaf9',
// For leaf tiles
leafTilePadding: 4, //px
@@ -771,15 +771,15 @@ export default defineComponent({
</div>
<!-- Modals -->
<transition name="fade">
+ <search-modal v-if="searchOpen" :tolMap="tolMap" :uiOpts="uiOpts" ref="searchModal"
+ @search-close="searchOpen = false" @search-node="onSearchNode" @info-icon-click="onInfoIconClick"/>
+ </transition>
+ <transition name="fade">
<tile-info-modal v-if="infoModalNodeName != null"
:nodeName="infoModalNodeName" :tolMap="tolMap" :lytOpts="lytOpts" :uiOpts="uiOpts"
@info-modal-close="infoModalNodeName = null"/>
</transition>
<transition name="fade">
- <search-modal v-if="searchOpen" :tolMap="tolMap" :uiOpts="uiOpts" ref="searchModal"
- @search-close="searchOpen = false" @search-node="onSearchNode" @info-icon-click="onInfoIconClick"/>
- </transition>
- <transition name="fade">
<help-modal v-if="helpOpen" :uiOpts="uiOpts"
@help-modal-close="helpOpen = false" @start-tutorial="onStartTutorial"/>
</transition>