mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-02 13:06:39 +00:00
fix(nc-gui): barcode and qrcode height issue in link record dropdown
This commit is contained in:
@@ -22,7 +22,13 @@ const tooManyCharsForBarcode = computed(() => barcodeValue.value.length > maxNum
|
||||
|
||||
const modalVisible = ref(false)
|
||||
|
||||
const isExpandedFormOpen = inject(IsExpandedFormOpenInj, ref(false))
|
||||
const _isExpandedFormOpen = inject(IsExpandedFormOpenInj, ref(false))
|
||||
|
||||
const isLinkRecordDropdown = inject(IsLinkRecordDropdownInj, ref(false))
|
||||
|
||||
const isExpandedFormOpen = computed(() => {
|
||||
return _isExpandedFormOpen.value && !isLinkRecordDropdown.value
|
||||
})
|
||||
|
||||
const barcodeMeta = computed(() => {
|
||||
return {
|
||||
@@ -64,7 +70,7 @@ const cellIcon = (column: ColumnType) =>
|
||||
})
|
||||
|
||||
onMounted(() => {
|
||||
if (isCanvasInjected && !isUnderLookup.value && !isExpandedFormOpen.value) {
|
||||
if (isCanvasInjected && !isUnderLookup.value && !isExpandedFormOpen.value && !isLinkRecordDropdown.value) {
|
||||
modalVisible.value = true
|
||||
}
|
||||
})
|
||||
@@ -105,7 +111,7 @@ onMounted(() => {
|
||||
class="flex w-full items-center barcode-wrapper"
|
||||
:class="{
|
||||
'justify-start': isExpandedFormOpen,
|
||||
'justify-center': !isExpandedFormOpen,
|
||||
'justify-center': !isExpandedFormOpen && !isLinkRecordDropdown,
|
||||
}"
|
||||
>
|
||||
<JsBarcodeWrapper
|
||||
|
||||
Reference in New Issue
Block a user