Browse Source

fix : UI improvements

pull/3082/head
Naveen MR 2 years ago
parent
commit
32997bbb5f
  1. 4
      packages/nc-gui-v2/components/smartsheet-toolbar/ColumnFilter.vue
  2. 2
      packages/nc-gui-v2/components/smartsheet-toolbar/FieldsMenu.vue
  3. 2
      packages/nc-gui-v2/components/smartsheet-toolbar/MoreActions.vue
  4. 2
      packages/nc-gui-v2/components/smartsheet-toolbar/SortListMenu.vue
  5. 4
      packages/nc-gui-v2/components/smartsheet/Toolbar.vue

4
packages/nc-gui-v2/components/smartsheet-toolbar/ColumnFilter.vue

@ -112,7 +112,7 @@ defineExpose({
<template> <template>
<div <div
class="p-6 menu-filter-dropdown bg-gray-50" class="p-6 menu-filter-dropdown bg-gray-50 !border"
:class="{ 'shadow-xl min-w-[430px] max-w-[630px] max-h-[max(80vh,500px)] overflow-auto': !nested, 'border-1 w-full': nested }" :class="{ 'shadow-xl min-w-[430px] max-w-[630px] max-h-[max(80vh,500px)] overflow-auto': !nested, 'border-1 w-full': nested }"
> >
<div v-if="filters && filters.length" class="nc-filter-grid mb-2" @click.stop> <div v-if="filters && filters.length" class="nc-filter-grid mb-2" @click.stop>
@ -272,7 +272,7 @@ defineExpose({
<style scoped> <style scoped>
.nc-filter-grid { .nc-filter-grid {
display: grid; display: grid;
grid-template-columns: 18px 70px auto auto auto; grid-template-columns: 18px 75px auto auto auto;
@apply gap-[12px] @apply gap-[12px]
align-items: center; align-items: center;
} }

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

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

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

@ -117,7 +117,7 @@ const exportFile = async (exportType: ExportTypes.EXCEL | ExportTypes.CSV) => {
</div> </div>
</a-button> </a-button>
<template #overlay> <template #overlay>
<div class="bg-white shadow-lg"> <div class="bg-white shadow-lg !border">
<div> <div>
<div class="nc-menu-item" @click="exportFile(ExportTypes.CSV)"> <div class="nc-menu-item" @click="exportFile(ExportTypes.CSV)">
<MdiDownloadIcon /> <MdiDownloadIcon />

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

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

4
packages/nc-gui-v2/components/smartsheet/Toolbar.vue

@ -15,10 +15,10 @@ const { isGrid, isForm } = useSmartsheetStoreOrThrow()
<SmartsheetToolbarShareView v-if="isForm || isGrid" /> <SmartsheetToolbarShareView v-if="isForm || isGrid" />
<SmartsheetToolbarMoreActions v-if="isGrid" /> <SmartsheetToolbarMoreActions v-if="isGrid" />
<div class="flex-1" />
<SmartsheetToolbarSearchData v-if="isGrid" class="shrink mr-2" />
<SmartsheetToolbarSearchData v-if="isGrid" class="shrink ml-2" />
<div class="flex-1" />
</div> </div>
</template> </template>

Loading…
Cancel
Save