π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix(nc-gui): attachment upload by webcam is not responsive in mobile mode
Ramesh Mane30ad9d6090de
diff --git a/packages/nc-gui/components/cell/attachment/Modal.vue b/packages/nc-gui/components/cell/attachment/Modal.vueindex 57ba2ed07a..a08171210a 100644--- a/packages/nc-gui/components/cell/attachment/Modal.vue+++ b/packages/nc-gui/components/cell/attachment/Modal.vue@@ -197,7 +197,8 @@ const isNewAttachmentModalOpen = ref(false)<style lang="scss">.hide-ui {- @apply h-0 w-0 overflow-x-hidden whitespace-nowrap;+ @apply md:(h-0 w-0 overflow-x-hidden whitespace-nowrap);+.group:hover & {@apply h-auto w-auto overflow-visible whitespace-normal;}diff --git a/packages/nc-gui/components/cell/attachment/UploadProviders/Camera.vue b/packages/nc-gui/components/cell/attachment/UploadProviders/Camera.vueindex 950e0b8740..28db787f72 100644--- a/packages/nc-gui/components/cell/attachment/UploadProviders/Camera.vue+++ b/packages/nc-gui/components/cell/attachment/UploadProviders/Camera.vue@@ -73,7 +73,7 @@ onBeforeUnmount(() => {<template><div class="w-full relative h-full"><NcTooltip class="absolute top-3 right-2">- <NcButton type="text" class="!border-0" size="xsmall" @click="closeMenu">+ <NcButton type="text" class="!border-0" :size="isMobileMode ? 'small' : 'xsmall'" @click="closeMenu"><GeneralIcon icon="close" /></NcButton>@@ -100,8 +100,8 @@ onBeforeUnmount(() => {}"class="w-full gap-3 h-full flex-col flex items-center justify-between">- <div v-show="!capturedImage" class="w-full gap-3 h-full flex-col flex items-center justify-between">- <video ref="videoRef" class="rounded-md" style="width: 400px" autoplay></video>+ <div v-show="!capturedImage" class="w-full gap-3 h-full flex-col flex items-center justify-between border border-red-500">+ <video ref="videoRef" class="rounded-md w-full aspect-video max-w-md flex-1 object-contain" autoplay></video><NcButton class="!rounded-full !px-0" @click="captureImage"><mdi-camera class="text-xl" />@@ -109,7 +109,7 @@ onBeforeUnmount(() => {</div><div v-show="capturedImage" class="flex group flex-col">- <canvas ref="canvasRef" class="rounded-md mb-2" :class="isMobileMode ? 'w-[350px]' : 'w-[400px]'"></canvas>+ <canvas ref="canvasRef" class="mb-2 rounded-md w-full aspect-video max-w-md flex-1 object-contain"></canvas><div class="relative text-[12px] font-semibold text-gray-800 flex"><div class="flex-auto truncate line-height-4">diff --git a/packages/nc-gui/components/cell/attachment/UploadProviders/Local.vue b/packages/nc-gui/components/cell/attachment/UploadProviders/Local.vueindex 7cdc795e9c..9c58e410d6 100644--- a/packages/nc-gui/components/cell/attachment/UploadProviders/Local.vue+++ b/packages/nc-gui/components/cell/attachment/UploadProviders/Local.vue@@ -184,7 +184,7 @@ onBeforeUnmount(() => {<style lang="scss">.hide-ui {- @apply h-0 w-0 overflow-hidden whitespace-nowrap;+ @apply md:(h-0 w-0 overflow-hidden whitespace-nowrap);.group:hover & {@apply h-auto w-auto overflow-visible whitespace-normal;}