π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix(nc-gui): reduce record height in mobile view
Ramesh Manedb4dc7451939
diff --git a/packages/nc-gui/components/smartsheet/grid/InfiniteTable.vue b/packages/nc-gui/components/smartsheet/grid/InfiniteTable.vueindex 4f97dfab0d..57ad0b90a0 100644--- a/packages/nc-gui/components/smartsheet/grid/InfiniteTable.vue+++ b/packages/nc-gui/components/smartsheet/grid/InfiniteTable.vue@@ -237,7 +237,7 @@ const chunkStates = toRef(props, 'chunkStates')const isBulkOperationInProgress = toRef(props, 'isBulkOperationInProgress')-const rowHeight = computed(() => (isMobileMode.value ? 56 : rowHeightInPx[`${props.rowHeightEnum}`] ?? 32))+const rowHeight = computed(() => (isMobileMode.value ? 40 : rowHeightInPx[`${props.rowHeightEnum}`] ?? 32))const rowSlice = reactive({start: 0,@@ -2544,7 +2544,7 @@ const headerFilteredOrSortedClass = (colId: string) => {</div></div><tr- class="nc-grid-row transition-all duration-500 opacity-100 !xs:h-14"+ class="nc-grid-row transition-all duration-500 opacity-100 !xs:h-10":style="{height: `${rowHeight}px`,filter:diff --git a/packages/nc-gui/components/smartsheet/grid/Table.vue b/packages/nc-gui/components/smartsheet/grid/Table.vueindex 366e701027..73c965b7aa 100644--- a/packages/nc-gui/components/smartsheet/grid/Table.vue+++ b/packages/nc-gui/components/smartsheet/grid/Table.vue@@ -165,7 +165,7 @@ const isViewColumnsLoading = computed(() => _isViewColumnsLoading.value || !metaconst resizingColumn = ref(false)-const rowHeight = computed(() => (isMobileMode.value ? 56 : rowHeightInPx[`${props.rowHeightEnum}`] ?? 32))+const rowHeight = computed(() => (isMobileMode.value ? 40 : rowHeightInPx[`${props.rowHeightEnum}`] ?? 32))// #Permissionsconst { isUIAllowed, isDataReadOnly } = useRoles()@@ -2244,7 +2244,7 @@ onKeyStroke('ArrowDown', onDown)<template #default="{ state }"><trv-show="!showSkeleton"- class="nc-grid-row !xs:h-14"+ class="nc-grid-row !xs:h-10":class="{'active-row': activeCell.row === rowIndex || selectedRange._start?.row === rowIndex,'mouse-down': isGridCellMouseDown || isFillMode,diff --git a/packages/nc-gui/components/smartsheet/grid/canvas/composables/useCanvasTable.ts b/packages/nc-gui/components/smartsheet/grid/canvas/composables/useCanvasTable.tsindex 1333f1c2d5..a1f75ba8dc 100644--- a/packages/nc-gui/components/smartsheet/grid/canvas/composables/useCanvasTable.ts+++ b/packages/nc-gui/components/smartsheet/grid/canvas/composables/useCanvasTable.ts@@ -310,7 +310,7 @@ export function useCanvasTable({const isAddingColumnAllowed = computed(() => !readOnly.value && isFieldEditAllowed.value && !isSqlView.value)- const rowHeight = computed(() => (isMobileMode.value ? 56 : rowHeightInPx[`${rowHeightEnum?.value ?? 1}`] ?? 32))+ const rowHeight = computed(() => (isMobileMode.value ? 40 : rowHeightInPx[`${rowHeightEnum?.value ?? 1}`] ?? 32))const partialRowHeight = computed(() => scrollTop.value % rowHeight.value)