Browse Source

feat: Integrated search data(grid) with mobile view

pull/6474/head
Muhammed Mustafa 1 year ago
parent
commit
b77be5c64f
  1. 20
      packages/nc-gui/components/smartsheet/toolbar/SearchData.vue

20
packages/nc-gui/components/smartsheet/toolbar/SearchData.vue

@ -23,6 +23,8 @@ const { search, loadFieldQuery } = useFieldQuery()
const isDropdownOpen = ref(false)
const { isMobileMode } = useGlobal()
const isFocused = ref(false)
const searchDropdown = ref(null)
@ -93,11 +95,23 @@ watch(columns, () => {
@click="isDropdownOpen = !isDropdownOpen"
>
<GeneralIcon icon="search" class="ml-1 mr-2 h-3.5 w-3.5 text-gray-500 group-hover:text-black" />
<div class="w-16 group-hover:w-12 text-[0.75rem] font-medium text-gray-400 truncate">
<div v-if="!isMobileMode" class="w-16 group-hover:w-12 text-[0.75rem] font-medium text-gray-400 truncate">
{{ displayColumnLabel }}
</div>
<div class="hidden group-hover:block">
<component :is="iconMap.arrowDown" class="text-gray-400 text-sm" />
<div
:class="{
'hidden group-hover:block': !isMobileMode,
'text-gray-700': isMobileMode,
}"
>
<component
:is="iconMap.arrowDown"
class="text-sm"
:class="{
'text-gray-400': !isMobileMode,
'text-gray-600': isMobileMode,
}"
/>
</div>
<a-select
v-model:value="search.field"

Loading…
Cancel
Save