diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-03-23 18:13:40 +1100 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-03-23 18:13:40 +1100 |
| commit | 9f6598dcbf267d2fd330f98f7fc3a186f909aee3 (patch) | |
| tree | d4e64221840aaefb1293228e009617d074e35f92 /src/components/TileImg.vue | |
| parent | 8acbc23bbff51197988fbdcf06e13d2b9a757b72 (diff) | |
Simplify non-leaf tile shadow handling
Diffstat (limited to 'src/components/TileImg.vue')
| -rw-r--r-- | src/components/TileImg.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/TileImg.vue b/src/components/TileImg.vue index c03ba84..79a8e7b 100644 --- a/src/components/TileImg.vue +++ b/src/components/TileImg.vue @@ -22,12 +22,12 @@ export default defineComponent({ border: '1px black solid', width: this.tileSz + 'px', height: this.tileSz + 'px', - backgroundImage: + backgroundImage: 'linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0) 40%),' + 'url(\'/img/' + this.layoutNode.tolNode.name.replaceAll('\'', '\\\'') + '.png\')', backgroundSize: 'cover', borderRadius: this.options.borderRadius + 'px', - boxShadow: (this.highlight ? this.options.shadowHighlight : this.options.shadowNormal), + boxShadow: this.highlight ? this.options.shadowHighlight : this.options.shadowNormal, }; }, headerStyles(): Record<string,string> { |
