diff --git a/packages/nc-gui/assets/style.scss b/packages/nc-gui/assets/style.scss index 7060905b0a..f4f2e72778 100644 --- a/packages/nc-gui/assets/style.scss +++ b/packages/nc-gui/assets/style.scss @@ -714,7 +714,7 @@ input[type='number'] { } .nc-sidebar-node-btn:not(.nc-sidebar-expand) { - @apply !xs:(hidden) + @apply !xs:(hidden); } } @@ -727,13 +727,18 @@ input[type='number'] { @apply xs:(opacity-100 hover:bg-gray-50); .nc-icon { - @apply xs:(visible opacity-100 !text-gray-500) + @apply xs:(visible opacity-100 !text-gray-500); } } .ant-message-notice-content { @apply !rounded-md; .ant-message-custom-content{ - @apply flex items-center + @apply flex items-center; } -} \ No newline at end of file +} + +svg.nc-cell-icon, svg.nc-virtual-cell-icon { + @apply w-1em h-1em flex-none; + font-size: 1rem; +} diff --git a/packages/nc-gui/components/cell/Checkbox.vue b/packages/nc-gui/components/cell/Checkbox.vue index 1689d07fcf..38bc569923 100644 --- a/packages/nc-gui/components/cell/Checkbox.vue +++ b/packages/nc-gui/components/cell/Checkbox.vue @@ -90,12 +90,13 @@ useSelectedCellKeyupListener(active, (e) => { 'w-full justify-center': !isForm && !isGallery && !isExpandedFormOpen, 'nc-cell-hover-show': !vModel && !readOnly, 'opacity-0': readOnly && !vModel, + 'pointer-events-none': readOnly, }" :style="{ height: isForm || isExpandedFormOpen || isGallery || isEditColumnMenu ? undefined : `max(${(rowHeight || 1) * 1.8}rem, 41px)`, }" - tabindex="0" + :tabindex="readOnly ? -1 : 0" @click="onClick(false, $event)" @keydown.enter.stop="onClick(true, $event)" > diff --git a/packages/nc-gui/components/cell/Currency.vue b/packages/nc-gui/components/cell/Currency.vue index 998830186b..8a4fc1080b 100644 --- a/packages/nc-gui/components/cell/Currency.vue +++ b/packages/nc-gui/components/cell/Currency.vue @@ -6,6 +6,7 @@ import { EditModeInj, IsExpandedFormOpenInj, IsFormInj, + ReadonlyInj, computed, inject, parseProp, @@ -28,6 +29,8 @@ const editEnabled = inject(EditModeInj)! const isEditColumn = inject(EditColumnInj, ref(false)) +const readOnly = inject(ReadonlyInj, ref(false)) + const _vModel = useVModel(props, 'modelValue', emit) const vModel = computed({ @@ -87,12 +90,11 @@ onMounted(() => {