fix: extra mt in section

This commit is contained in:
Shariq Ansari 2024-12-31 23:45:48 +05:30
parent 46a75b08fd
commit 7d81f531d3
2 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@
:class="[ :class="[
{ {
'px-3 sm:px-5': hasTabs, 'px-3 sm:px-5': hasTabs,
'mt-6': !section.hideLabel || !section.label, 'mt-6': section.label && !section.hideLabel,
}, },
]" ]"
> >
@ -50,7 +50,7 @@
:key="column.name" :key="column.name"
> >
<div <div
v-if="!column.hideLabel || !column.label" v-if="column.label && !column.hideLabel"
class="text-ink-gray-9 max-w-fit text-base" class="text-ink-gray-9 max-w-fit text-base"
> >
{{ column.label }} {{ column.label }}

View File

@ -106,7 +106,7 @@ const tabs = computed(() => {
if (fieldsData[0].type != 'Tab Break') { if (fieldsData[0].type != 'Tab Break') {
let _sections = [] let _sections = []
if (fieldsData[0].type != 'Section Break') { if (fieldsData[0].type != 'Section Break') {
_sections.push({ columns: [{ fields: [] }] }) _sections.push({ no_tabs: true, columns: [{ fields: [] }] })
} }
_tabs.push({ _tabs.push({
no_tabs: true, no_tabs: true,