From e4c2de4f953e34f5f5e27f6574943770090b4ce0 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Wed, 29 Jun 2022 20:57:13 +1000 Subject: Make search-bar animate-mode-control more setting-indicative --- src/components/SearchModal.vue | 62 ++++++++++++++++++++++++------------------ 1 file changed, 35 insertions(+), 27 deletions(-) (limited to 'src/components') diff --git a/src/components/SearchModal.vue b/src/components/SearchModal.vue index d866c91..0e92eb6 100644 --- a/src/components/SearchModal.vue +++ b/src/components/SearchModal.vue @@ -1,34 +1,32 @@ @@ -65,12 +63,22 @@ export default defineComponent({ }, computed: { styles(): Record { + let br = this.uiOpts.borderRadius; return { backgroundColor: this.uiOpts.bgColorAlt, - borderRadius: this.uiOpts.borderRadius + 'px', + borderRadius: this.searchSuggs.length == 0 ? `${br}px` : `${br}px ${br}px 0 0`, boxShadow: this.uiOpts.shadowNormal, }; }, + animateLabelStyles(): Record { + return { + position: 'absolute', + top: -this.lytOpts.headerSz - 2 + 'px', + right: '0', + height: this.lytOpts.headerSz + 'px', + color: this.uiOpts.textColor, + }; + }, suggDisplayStrings(): [string, string, string][] { let result: [string, string, string][] = []; let input = this.suggsInput; -- cgit v1.2.3