diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-06-25 12:10:58 +1000 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-06-25 12:43:36 +1000 |
| commit | 2a0c04245f8ab5017ca96449cca8aeb36336edf3 (patch) | |
| tree | 9d8fed07810e7b22c2ed29b6db014f69f4023fe5 /src/components/SearchModal.vue | |
| parent | a1c5e2017ef80d360cc0d08ae73437ce32766c6e (diff) | |
Reduce degrees-of-variance in options set
Also add size prop to IconButton
Diffstat (limited to 'src/components/SearchModal.vue')
| -rw-r--r-- | src/components/SearchModal.vue | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/components/SearchModal.vue b/src/components/SearchModal.vue index 1a3ef27..a3fbd14 100644 --- a/src/components/SearchModal.vue +++ b/src/components/SearchModal.vue @@ -24,13 +24,13 @@ export default defineComponent({ }, computed: { infoIconStyles(): Record<string,string> { - let size = this.uiOpts.infoIconSz + 'px'; + let size = '18px'; return { width: size, height: size, minWidth: size, minHeight: size, - margin: this.uiOpts.infoIconMargin + 'px', + margin: '2px', }; }, suggDisplayStrings(): [string, string, string][] { @@ -71,8 +71,8 @@ export default defineComponent({ } }, onSearchModeChg(){ - this.uiOpts.jumpToSearchedNode = !this.uiOpts.jumpToSearchedNode; - this.$emit('settings-chg', [], ['jumpToSearchedNode']); + this.uiOpts.searchJumpMode = !this.uiOpts.searchJumpMode; + this.$emit('settings-chg', [], ['searchJumpMode']); }, resolveSearch(tolNodeName: string){ if (tolNodeName == ''){ @@ -223,7 +223,7 @@ export default defineComponent({ </div> <div class="my-auto mx-2 hover:cursor-pointer hover:brightness-75 rounded"> <log-in-icon @click.stop="onSearchModeChg" class="block w-8 h-8" - :class="uiOpts.jumpToSearchedNode ? 'text-stone-500' : 'text-stone-300'"/> + :class="uiOpts.searchJumpMode ? 'text-stone-500' : 'text-stone-300'"/> </div> </div> </div> |
