Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix(nc-gui): use dynamic height

Ramesh Mane3a3c400e3f70
diff --git a/packages/nc-gui/components/smartsheet/expanded-form/index.vue b/packages/nc-gui/components/smartsheet/expanded-form/index.vue
index f0e2614adb..2ca961281d 100644
--- a/packages/nc-gui/components/smartsheet/expanded-form/index.vue
+++ b/packages/nc-gui/components/smartsheet/expanded-form/index.vue
@@ -984,7 +984,12 @@ export default {
@apply xs:my-0;
.ant-drawer-content-wrapper {
- @apply !h-[90vh];
+ @apply !h-[90dvh];
+
+ @supports (height: 90dvh) {
+ @apply !h-[90dvh];
+ }
+
.ant-drawer-content {
@apply rounded-t-2xl;
}
diff --git a/packages/nc-gui/components/virtual-cell/QrCode.vue b/packages/nc-gui/components/virtual-cell/QrCode.vue
index ecaba6d2b3..9b3e430846 100644
--- a/packages/nc-gui/components/virtual-cell/QrCode.vue
+++ b/packages/nc-gui/components/virtual-cell/QrCode.vue
@@ -7,6 +7,8 @@ import { base64ToBlob, copyPNGToClipboard } from '~/utils/svgToPng'
const { t } = useI18n()
+const { isMobileMode } = useGlobal()
+
const isCanvasInjected = inject(IsCanvasInjectionInj, false)
const isUnderLookup = inject(IsUnderLookupInj, ref(false))
@@ -112,6 +114,7 @@ onMounted(() => {
wrap-class-name="nc-qr-code-large qrcode-modal"
:body-style="{ padding: '0px', display: 'flex', justifyContent: 'center' }"
:closable="false"
+ :centered="isMobileMode"
@ok="handleModalOkClick"
>
<template #title>
diff --git a/packages/nc-gui/components/virtual-cell/barcode/Barcode.vue b/packages/nc-gui/components/virtual-cell/barcode/Barcode.vue
index 44a82b6401..7fad0509aa 100644
--- a/packages/nc-gui/components/virtual-cell/barcode/Barcode.vue
+++ b/packages/nc-gui/components/virtual-cell/barcode/Barcode.vue
@@ -4,6 +4,8 @@ import { type ColumnType, isVirtualCol } from 'nocodb-sdk'
import { IsCanvasInjectionInj } from '../../../context'
import JsBarcodeWrapper from './JsBarcodeWrapper.vue'
+const { isMobileMode } = useGlobal()
+
const isCanvasInjected = inject(IsCanvasInjectionInj, false)
const isUnderLookup = inject(IsUnderLookupInj, ref(false))
@@ -84,6 +86,7 @@ onMounted(() => {
:body-style="{ padding: '0px' }"
:footer="null"
:closable="false"
+ :centered="isMobileMode"
@ok="handleModalOkClick"
>
<template #title>
diff --git a/packages/nc-gui/layouts/base.vue b/packages/nc-gui/layouts/base.vue
index 168122c457..b95126cbcf 100644
--- a/packages/nc-gui/layouts/base.vue
+++ b/packages/nc-gui/layouts/base.vue
@@ -35,7 +35,7 @@ hooks.hook('page:finish', () => {
<div v-show="hasSider" id="nc-sidebar-left" ref="sidebar" />
</Transition>
- <a-layout class="!flex-col h-screen">
+ <a-layout class="!flex-col nc-h-screen">
<a-layout-header v-if="!route.meta.public && signedIn && !route.meta.hideHeader" class="nc-navbar">
<div
v-if="!route.params.baseType"