diff --git a/nezha-fronted/src/assets/css/components/common/searchInput.scss b/nezha-fronted/src/assets/css/components/common/searchInput.scss index f8ae74d46..bdf9e0d95 100644 --- a/nezha-fronted/src/assets/css/components/common/searchInput.scss +++ b/nezha-fronted/src/assets/css/components/common/searchInput.scss @@ -310,7 +310,7 @@ width: auto; max-width: 400px; max-height: 240px; - min-width: 300px; + min-width: 260px; background: $--background-color-empty; border-radius: 3px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); diff --git a/nezha-fronted/src/components/common/searchInput.vue b/nezha-fronted/src/components/common/searchInput.vue index e6ef1dac3..cae7a68f1 100644 --- a/nezha-fronted/src/components/common/searchInput.vue +++ b/nezha-fronted/src/components/common/searchInput.vue @@ -961,7 +961,7 @@ export default { objectInfo.type = val.valnum } else if (val.label === 'assetState') { objectInfo.stateIds = val.valnum - }else if (val.label === 'terminalStatus') { + } else if (val.label === 'terminalStatus') { objectInfo.state = val.valnum } else if (val.label === 'assetType') { objectInfo.typeIds = val.valnum @@ -1544,11 +1544,11 @@ export default { if (this.inTransform) { const position = inputListDom.getBoundingClientRect() this.selectDom.top = position.top + 36 + 'px' - this.selectDom.left = position.left + 'px' + this.selectDom.left = position.left - 31 + 'px' } else { const position = inputListDom.getBoundingClientRect() this.selectDom.top = position.top + 36 + 'px' - this.selectDom.left = position.left + 'px' + this.selectDom.left = position.left - 31 + 'px' } }) }