diff --git a/packages/nc-gui/components/cmd-k/index.vue b/packages/nc-gui/components/cmd-k/index.vue index 032c5069aa..bd61034116 100644 --- a/packages/nc-gui/components/cmd-k/index.vue +++ b/packages/nc-gui/components/cmd-k/index.vue @@ -1,7 +1,7 @@ - + { :stencil-props="cropperConfig?.stencilProps || {}" :min-height="cropperConfig?.minHeight" :min-width="cropperConfig?.minWidth" - :image-restriction="cropperConfig?.imageRestriction" + :image-restriction="imageRestriction" + v-bind=" + cropperConfig.stencilProps?.fillDefault || cropperConfig.stencilProps?.fillDefault === undefined ? { defaultSize } : {} + " /> @@ -121,7 +148,13 @@ watch(showCropper, () => { Crop - Save + + Cropped file size is greater than max file size + + + Save + + diff --git a/packages/nc-gui/components/general/UserIcon.vue b/packages/nc-gui/components/general/UserIcon.vue index 8ce6118caa..ffead704bf 100644 --- a/packages/nc-gui/components/general/UserIcon.vue +++ b/packages/nc-gui/components/general/UserIcon.vue @@ -1,5 +1,5 @@ + + + + + + + + + + + + + + + + Remove + + + + + + + Icon + + + + + + + + + + + + + + + + + + + + + + Upload + + + + + + + + + + {{ vIcon?.title || 'Workspace logo' }} + {{ vIcon?.title || 'Workspace logo' }} + + + {{ vIcon?.size ? `${(vIcon?.size / 1048576).toFixed(2)} MB` : '0 MB' }} + + + + + + + + + + + + + + + + + + + + + + Drop your icon here or browse file + Supported: image/* + + + + + + + + + + Emoji + + + + {}" + > + + + + + + + + + + + + + + diff --git a/packages/nc-gui/components/smartsheet/Form.vue b/packages/nc-gui/components/smartsheet/Form.vue index 104cb53914..96b9b6cd8c 100644 --- a/packages/nc-gui/components/smartsheet/Form.vue +++ b/packages/nc-gui/components/smartsheet/Form.vue @@ -17,7 +17,7 @@ import { isVirtualCol, } from 'nocodb-sdk' import type { ValidateInfo } from 'ant-design-vue/es/form/useForm' -import type { ImageCropperConfig } from '~/lib/types' +import type { ImageCropperConfig } from '#imports' provide(IsFormInj, ref(true)) provide(IsGalleryInj, ref(false)) diff --git a/packages/nc-gui/components/workspace/View.vue b/packages/nc-gui/components/workspace/View.vue index c086eb569e..d6ab102eb3 100644 --- a/packages/nc-gui/components/workspace/View.vue +++ b/packages/nc-gui/components/workspace/View.vue @@ -109,7 +109,7 @@ onMounted(() => { - + @@ -166,11 +166,6 @@ onMounted(() => {