Browse Source

refactor(gui-v2): set min height for sort and field list

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/2860/head
Pranav C 2 years ago
parent
commit
c89275cbcd
  1. 2
      packages/nc-gui-v2/components/smartsheet-toolbar/FieldsMenu.vue
  2. 2
      packages/nc-gui-v2/components/smartsheet-toolbar/SortListMenu.vue

2
packages/nc-gui-v2/components/smartsheet-toolbar/FieldsMenu.vue

@ -89,7 +89,7 @@ const onMove = (event: { moved: { newIndex: number } }) => {
</a-button>
</div>
<template #overlay>
<div class="pt-0 min-w-[280px] bg-gray-50 shadow nc-table-toolbar-menu" @click.stop>
<div class="pt-0 min-w-[280px] bg-gray-50 shadow nc-table-toolbar-menu max-h-[max(80vh,500px)] overflow-auto" @click.stop>
<div class="p-1" @click.stop>
<a-input v-model:value="filterQuery" size="small" :placeholder="$t('placeholder.searchFields')" />
</div>

2
packages/nc-gui-v2/components/smartsheet-toolbar/SortListMenu.vue

@ -38,7 +38,7 @@ watch(
</a-button>
</div>
<template #overlay>
<div class="bg-gray-50 shadow p-2 menu-filter-dropdown min-w-[400px]">
<div class="bg-gray-50 shadow p-2 menu-filter-dropdown min-w-[400px] max-h-[max(80vh,500px)] overflow-auto">
<div v-if="sorts?.length" class="sort-grid mb-2" @click.stop>
<template v-for="(sort, i) in sorts || []" :key="i">
<!-- <v-icon :key="`${i}icon`" class="nc-sort-item-remove-btn" small @click.stop="deleteSort(sort)"> mdi-close-box </v-icon> -->

Loading…
Cancel
Save