From a65662f80e81782dde09722288e5d1c28cb8845e Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Wed, 29 Jun 2022 01:14:17 +1000
Subject: Make tile-info image link to source-URL

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

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

diff --git a/src/components/TileInfoModal.vue b/src/components/TileInfoModal.vue
index 581e4cd..27ff8c2 100644
--- a/src/components/TileInfoModal.vue
+++ b/src/components/TileInfoModal.vue
@@ -19,7 +19,10 @@
 			</h1>
 			<div class="flex gap-1">
 				<div class="w-1/2">
-					<div :style="getImgStyles(nodes[idx])"/>
+					<div v-if="imgInfos[idx] == null" :style="getImgStyles(nodes[idx])"/>
+					<a v-else :href="imgInfos[idx].url">
+						<div :style="getImgStyles(nodes[idx])"/>
+					</a>
 					<ul v-if="imgInfos[idx]! != null">
 						<li>Obtained via: {{imgInfos[idx]!.src}}</li>
 						<li>License:
-- 
cgit v1.2.3

