aboutsummaryrefslogtreecommitdiff
path: root/src/components/TileTree.vue
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-03-24 16:39:33 +1100
committerTerry Truong <terry06890@gmail.com>2022-03-24 16:39:33 +1100
commit39792d870ed213b45b43d2cc38cf78f6ae94b137 (patch)
tree3adf3f536245d3e1935657c3b1df5a08c22c4338 /src/components/TileTree.vue
parent4f77129b12e02c4b9cebc61cb75c5178e3e9607f (diff)
Propagate options to TileInfoModal
Diffstat (limited to 'src/components/TileTree.vue')
-rw-r--r--src/components/TileTree.vue4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/TileTree.vue b/src/components/TileTree.vue
index 0b1cc58..99ea9e3 100644
--- a/src/components/TileTree.vue
+++ b/src/components/TileTree.vue
@@ -51,6 +51,8 @@ const defaultComponentOptions = {
nonLeafHeaderFontSz: 15, //px
nonLeafHeaderColor: '#fafaf9',
nonLeafHeaderBgColor: '#1c1917',
+ // For tile-info modal
+ infoModalImgSz: 200,
// Timing related
transitionDuration: 300, //ms
dblClickWait: 200, //ms
@@ -235,7 +237,7 @@ export default defineComponent({
<parent-bar v-if="sepdParents != null"
:pos="[0,0]" :dims="parentBarDims" :nodes="sepdParents" :options="componentOptions"
@sepd-parent-clicked="onSepdParentClicked" @info-icon-clicked="onInnerInfoIconClicked"/>
- <tile-info-modal :tolNode="infoModalNode" @info-modal-close="onInfoModalClose"/>
+ <tile-info-modal :tolNode="infoModalNode" :options="componentOptions" @info-modal-close="onInfoModalClose"/>
</div>
</template>