From 10bbee922994c86ad51efad7e17f4b8d58cbd6ab Mon Sep 17 00:00:00 2001 From: Andrian Roshandy Date: Fri, 3 Oct 2025 06:03:23 +0700 Subject: [PATCH] feat/layout-cleaning: penyesuaian kecil doc-entry --- app/components/pub/custom-ui/doc-entry/block.vue | 4 +++- app/components/pub/custom-ui/doc-entry/cell.vue | 4 ++-- app/components/pub/custom-ui/doc-entry/field.vue | 4 ++-- app/components/pub/custom-ui/doc-entry/index.ts | 3 ++- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/app/components/pub/custom-ui/doc-entry/block.vue b/app/components/pub/custom-ui/doc-entry/block.vue index bc855d2c..d56d568b 100644 --- a/app/components/pub/custom-ui/doc-entry/block.vue +++ b/app/components/pub/custom-ui/doc-entry/block.vue @@ -52,13 +52,15 @@ const settingClass = computed(() => { '[&_.cell]:xl:flex', '[&_.cell]:2xl:flex', ][getBreakpointIdx(props.cellFlexPoint)] - cls += ' ' + [ + cls += ' [&_.label]:flex-shrink-0 ' + [ '[&_.label]:md:w-12 [&_.label]:xl:w-20', '[&_.label]:md:w-16 [&_.label]:xl:w-24', '[&_.label]:md:w-24 [&_.label]:xl:w-32', '[&_.label]:md:w-32 [&_.label]:xl:w-40', '[&_.label]:md:w-44 [&_.label]:xl:w-52', ][getLabelSizeIdx(props.labelSize)] + } else { + cls += ' [&_.label]:pb-1 '; } cls += ' [&:not(.preview)_.height-default]:pt-2 [&:not(.preview)_.height-default]:2xl:!pt-1.5 [&:not(.preview)_.height-compact]:!pt-1 ' cls += '[&_textarea]:text-xs [&_textarea]:xl:text-sm ' diff --git a/app/components/pub/custom-ui/doc-entry/cell.vue b/app/components/pub/custom-ui/doc-entry/cell.vue index f37259ce..8c151df7 100644 --- a/app/components/pub/custom-ui/doc-entry/cell.vue +++ b/app/components/pub/custom-ui/doc-entry/cell.vue @@ -9,7 +9,7 @@ const props = defineProps({ }) const settingClass = computed(() => { - let cls = 'cell' + let cls = ' cell' if (props.colSpan) { cls += ' ' + [ 'col-span-1', 'col-span-2', 'col-span-3', 'col-span-4', 'col-span-5', @@ -36,7 +36,7 @@ const settingClass = computed(() => { diff --git a/app/components/pub/custom-ui/doc-entry/field.vue b/app/components/pub/custom-ui/doc-entry/field.vue index 829e0015..fb43507a 100644 --- a/app/components/pub/custom-ui/doc-entry/field.vue +++ b/app/components/pub/custom-ui/doc-entry/field.vue @@ -1,13 +1,13 @@