From dacc1b2e8fe4b7971304116fce54b3757d37d164 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Sat, 26 Mar 2022 12:22:12 +1100 Subject: Highlight search result --- src/components/Tile.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/components/Tile.vue') 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', -- cgit v1.2.3