Browse Source

feat(gallery): skip empty value to be displayed in the gallery view

pull/4242/head
redhoyasa 2 years ago
parent
commit
04a7fbd525
  1. 8
      packages/nc-gui/components/smartsheet/Gallery.vue

8
packages/nc-gui/components/smartsheet/Gallery.vue

@ -203,11 +203,8 @@ watch(view, async (nextView) => {
<MdiFileImageBox v-else class="w-full h-48 my-4 text-cool-gray-200" />
</template>
<div
v-for="col in fieldsWithoutCover"
:key="`record-${record.row.id}-${col.id}`"
class="flex flex-col space-y-1 px-4 mb-6 bg-gray-50 rounded-lg w-full"
>
<div v-for="col in fieldsWithoutCover" :key="`record-${record.row.id}-${col.id}`">
<div v-if="!isRowEmpty(record, col)" class="flex flex-col space-y-1 px-4 mb-6 bg-gray-50 rounded-lg w-full">
<div class="flex flex-row w-full justify-start border-b-1 border-gray-100 py-2.5">
<div class="w-full text-gray-600">
<LazySmartsheetHeaderVirtualCell v-if="isVirtualCol(col)" :column="col" :hide-menu="true" />
@ -237,6 +234,7 @@ watch(view, async (nextView) => {
</template>
</div>
</div>
</div>
</a-card>
</LazySmartsheetRow>
</div>

Loading…
Cancel
Save