diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-03-26 12:22:12 +1100 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-03-26 12:41:15 +1100 |
| commit | dacc1b2e8fe4b7971304116fce54b3757d37d164 (patch) | |
| tree | f06c58581ea269354f086b0c3ffa30e4227809c1 /src/components/Tile.vue | |
| parent | 91f78e4ec12eda07840b940692013a1aa025b7b8 (diff) | |
Highlight search result
Diffstat (limited to 'src/components/Tile.vue')
| -rw-r--r-- | src/components/Tile.vue | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/components/Tile.vue b/src/components/Tile.vue index f0b506e..3485f53 100644 --- a/src/components/Tile.vue +++ b/src/components/Tile.vue @@ -62,7 +62,8 @@ export default defineComponent({ height: '100%', backgroundColor: this.nonLeafBgColor, borderRadius: this.options.borderRadius + 'px', - boxShadow: this.nonLeafHighlight ? this.options.shadowHighlight : this.options.shadowNormal, + boxShadow: this.nonLeafHighlight ? this.options.shadowHighlight : + (this.layoutNode.searchResult ? this.options.shadowSearchResult : this.options.shadowNormal), }; if (this.layoutNode.sepSweptArea != null){ let r = this.options.borderRadius + 'px'; @@ -92,7 +93,8 @@ export default defineComponent({ let commonStyles = { position: 'absolute', backgroundColor: this.nonLeafBgColor, - boxShadow: this.nonLeafHighlight ? this.options.shadowHighlight : this.options.shadowNormal, + boxShadow: this.nonLeafHighlight ? this.options.shadowHighlight : + (this.layoutNode.searchResult ? this.options.shadowSearchResult : this.options.shadowNormal), transitionDuration: this.options.transitionDuration + 'ms', transitionProperty: 'left, top, width, height', transitionTimingFunction: 'ease-out', |
