2
0
mirror of https://github.com/frappe/books.git synced 2025-01-12 19:06:38 +00:00

incr(ui): minor change to searchbar ui

- fix import error
This commit is contained in:
18alantom 2022-05-31 11:05:33 +05:30
parent 3975eb3f64
commit 11a2589c4a

View File

@ -58,13 +58,13 @@
<hr v-if="suggestions.length" /> <hr v-if="suggestions.length" />
<!-- Search List --> <!-- Search List -->
<div :style="`max-height: ${49 * 8 - 1}px`" class="overflow-auto"> <div :style="`max-height: ${49 * 6 - 1}px`" class="overflow-auto">
<div <div
v-for="(si, i) in suggestions" v-for="(si, i) in suggestions"
:key="`${i}-${si.key}`" :key="`${i}-${si.key}`"
ref="suggestions" ref="suggestions"
class="hover:bg-blue-50 cursor-pointer" class="hover:bg-gray-50 cursor-pointer border-l-2 border-white"
:class="idx === i ? 'bg-blue-100' : ''" :class="idx === i ? 'border-blue-500 bg-gray-50 -pl-1' : ''"
@click="select(i)" @click="select(i)"
> >
<!-- Doc Search List Item --> <!-- Doc Search List Item -->
@ -209,6 +209,7 @@
</Modal> </Modal>
</template> </template>
<script> <script>
import { fyo } from 'src/initFyo';
import { getBgTextColorClass } from 'src/utils/colors'; import { getBgTextColorClass } from 'src/utils/colors';
import { getGroupLabelMap, searchGroups } from 'src/utils/search'; import { getGroupLabelMap, searchGroups } from 'src/utils/search';
import { useKeys } from 'src/utils/vueUtils'; import { useKeys } from 'src/utils/vueUtils';