From 39792d870ed213b45b43d2cc38cf78f6ae94b137 Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Thu, 24 Mar 2022 16:39:33 +1100
Subject: Propagate options to TileInfoModal

---
 src/components/TileTree.vue | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'src/components/TileTree.vue')

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>
 
-- 
cgit v1.2.3

