aboutsummaryrefslogtreecommitdiff
path: root/src/components/Tile.vue
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-04-30 14:20:46 +1000
committerTerry Truong <terry06890@gmail.com>2022-04-30 14:20:46 +1000
commit764e5668d54e9af96dddcc8dd386d4cd8958d75a (patch)
tree7585670a1675e18139b95d3e8379b0b312e2c938 /src/components/Tile.vue
parentd87bb9bc0991d7ce4eeb895da61c63a204edaa4d (diff)
Make TileInfoModal display more data
Diffstat (limited to 'src/components/Tile.vue')
-rw-r--r--src/components/Tile.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/Tile.vue b/src/components/Tile.vue
index 2ab1df1..3dd4146 100644
--- a/src/components/Tile.vue
+++ b/src/components/Tile.vue
@@ -88,9 +88,9 @@ export default defineComponent({
leafStyles(): Record<string,string> {
return {
// Image (and scrims)
- backgroundImage: this.tolNode.imgFile != null ?
+ backgroundImage: this.tolNode.img?.filename != null ?
'linear-gradient(to bottom, rgba(0,0,0,0.4), #0000 40%, #0000 60%, rgba(0,0,0,0.4) 100%),' +
- 'url(\'/img/' + this.tolNode.imgFile.replaceAll('\'', '\\\'') + '\')' :
+ 'url(\'/img/' + this.tolNode.img.filename.replaceAll('\'', '\\\'') + '\')' :
'none',
backgroundColor: '#1c1917',
backgroundSize: 'cover',