Skip to content

Commit edaf337

Browse files
authored
fix(form): fix small size form validation position (#3334)
1 parent 0e5d117 commit edaf337

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/vue/src/form-item/src/mobile-first.vue

+3-5
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
v-if="slots.label || label"
2727
:class="
2828
m(
29-
'py-3 sm:py-1.5 sm:min-h-[theme(spacing.7)] relative align-bottom float-left text-sm pr-3 sm:pr-4 box-border leading-5 shrink-0',
29+
'py-3 sm:py-0 sm:min-h-[theme(spacing.7)] relative align-bottom float-left text-sm pr-3 sm:pr-4 box-border leading-5 shrink-0',
3030
'overflow-hidden text-ellipsis',
3131
state.labelPosition === 'top'
3232
? 'float-none inline-block text-left sm:text-left leading-none px-0 pt-0 pb-1.5 h-auto min-h-0 sm:py-0 sm:pb-1 sm:min-h-[theme(spacing.0)]'
@@ -120,12 +120,10 @@
120120
<div
121121
:class="
122122
m(
123-
'relative sm:absolute left-0 bottom-1 sm:-bottom-5 text-color-error text-xs leading-normal line-clamp-3 sm:line-clamp-1 break-all',
123+
'relative sm:absolute left-0 bottom-1 sm:-bottom-4 text-color-error text-xs leading-4 line-clamp-3 sm:line-clamp-1 break-all',
124124
(typeof inlineMessage === 'boolean' && inlineMessage) || state.inlineMessage
125125
? 'relative top-auto left-auto inline-block'
126-
: '',
127-
state.formItemSize === 'small' ? 'pt-0.5' : '',
128-
state.formItemSize === 'mini' ? 'pt-px' : ''
126+
: ''
129127
)
130128
"
131129
:title="state.validateMessage"

0 commit comments

Comments
 (0)