|
3 | 3 | data-tag="tiny-form-item"
|
4 | 4 | :class="
|
5 | 5 | m(
|
6 |
| - `flex min-h-[theme(spacing.12)] sm:min-h-[theme(spacing.7)] mb-0 p-0 sm:mb-4 box-border after:content-[''] after:table after:clear-both before:content-[''] before:table border-b-0.5 border-color-border-separator sm:border-none`, |
| 6 | + `flex min-h-[theme(spacing.12)] sm:min-h-[theme(spacing.5)] mb-0 p-0 sm:mb-4 box-border after:content-[''] after:table after:clear-both before:content-[''] before:table border-b-0.5 border-color-border-separator sm:border-none`, |
7 | 7 | state.validateState === 'error' && state.validateType === 'text' ? 'mb-0 sm:mb-5' : '',
|
8 | 8 | state.formInline ? 'align-sub' : '',
|
9 | 9 | state.labelPosition === 'top' ? 'block mb-4' : '',
|
|
12 | 12 | : '',
|
13 | 13 | state.labelPosition === 'top' && !state.hideRequiredAsterisk ? 'pl-0' : '',
|
14 | 14 | !slots.label && !label ? 'border-none' : '',
|
15 |
| - state.isDisplayOnly ? 'border-none py-0.5' : '' |
| 15 | + state.isDisplayOnly ? 'border-none py-0.5 sm:py-0' : '' |
16 | 16 | )
|
17 | 17 | "
|
18 | 18 | >
|
|
26 | 26 | v-if="slots.label || label"
|
27 | 27 | :class="
|
28 | 28 | 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', |
| 29 | + 'py-3 sm:py-0 sm:min-h-[theme(spacing.5)] relative align-bottom float-left text-sm pr-3 sm:pr-4 box-border leading-5', |
30 | 30 | 'overflow-hidden text-ellipsis',
|
31 | 31 | state.labelPosition === 'top'
|
32 | 32 | ? '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)]'
|
|
49 | 49 | <span
|
50 | 50 | :class="
|
51 | 51 | m(
|
52 |
| - 'max-h-[theme(spacing.10)] line-clamp-2 inline-block relative top-px leading-normal', |
| 52 | + 'max-h-[theme(spacing.10)] line-clamp-2 inline-block relative top-px leading-normal sm:leading-5.5', |
53 | 53 | (state.isRequired || required) && !state.hideRequiredAsterisk
|
54 | 54 | ? `before:content-['*'] before:text-color-error before:relative before:mr-1`
|
55 | 55 | : '',
|
|
73 | 73 | data-tag="tiny-form-item-inline"
|
74 | 74 | :class="
|
75 | 75 | m(
|
76 |
| - `flex-1 m-0 sm:m-auto relative sm:pt-0 sm:top-auto text-sm after:content-[''] after:table after:clear-both before:content-[''] before:table [&_button:not(:last-child)]:mr-2`, |
77 |
| - '[&_[data-tag=tiny-checkbox]]:py-0 [&_[data-tag=tiny-input]]:w-full', |
| 76 | + `flex-1 m-0 relative sm:pt-0 sm:top-auto text-sm after:content-[''] after:table after:clear-both before:content-[''] before:table [&_button:not(:last-child)]:mr-2 [&_[data-tag=tiny-rate]]:h-6`, |
| 77 | + '[&_[data-tag=tiny-checkbox]]:py-0 [&_[data-tag=tiny-input]]:w-full [&_[data-tag=tiny-input]]:block [&_[data-tag=tiny-input-inner]]:block [&_[data-tag=tiny-input-inner]]:leading-5', |
78 | 78 | '[&_[data-tag=tiny-input]_textarea]:px-0 sm:[&_[data-tag=tiny-input]_textarea]:px-3 [&_[data-tag=tiny-input]_textarea]:w-full [&_[data-tag=tiny-input]_textarea]:pt-1 sm:[&_[data-tag=tiny-input]_textarea]:pt-2',
|
79 | 79 | state.formInline ? 'align-sub leading-none' : '',
|
80 | 80 | state.labelPosition === 'top' && !state.hideRequiredAsterisk
|
|
0 commit comments