|
26 | 26 | v-if="slots.label || label"
|
27 | 27 | :class="
|
28 | 28 | m(
|
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', |
| 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', |
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)]'
|
33 | 33 | : 'min-h-[theme(spacing.9)]',
|
34 | 34 | state.labelPosition === 'right' ? 'text-right sm:text-right' : '',
|
35 | 35 | state.labelPosition === 'left' ? 'text-left sm:text-left' : '',
|
36 | 36 | state.formInline && state.labelPosition === 'top' ? 'block' : '',
|
37 |
| - state.isDisplayOnly ? 'leading-none h-auto align-[inherit] pr-4' : '', |
| 37 | + state.isDisplayOnly ? 'h-auto align-[inherit] pr-4' : '', |
38 | 38 | tipContent ? 'pr-5 sm:pr-7' : '',
|
39 | 39 | state.labelPosition === 'top' && !state.hideRequiredAsterisk
|
40 | 40 | ? 'overflow-visible relative before:absolute before:-left-2.5'
|
|
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 sm:leading-5.5', |
| 52 | + 'max-h-[theme(spacing.12)] line-clamp-2 inline-block relative leading-normal', |
53 | 53 | (state.isRequired || required) && !state.hideRequiredAsterisk
|
54 | 54 | ? `before:content-['*'] before:text-color-error before:relative before:mr-1`
|
55 | 55 | : '',
|
56 |
| - state.isDisplayOnly ? 'pl-0 before:hidden' : '' |
| 56 | + state.isDisplayOnly ? 'pl-0 before:hidden sm:leading-5.5' : 'sm:leading-7' |
57 | 57 | )
|
58 | 58 | "
|
59 | 59 | >
|
|
73 | 73 | data-tag="tiny-form-item-inline"
|
74 | 74 | :class="
|
75 | 75 | m(
|
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`, |
| 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`, |
77 | 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 | + state.isDisplayOnly ? '[&_[data-tag=tiny-rate]]:h-[22px]' : '[&_[data-tag=tiny-rate]]:h-7', |
80 | 81 | state.labelPosition === 'top' && !state.hideRequiredAsterisk
|
81 | 82 | ? state.isDisplayOnly
|
82 | 83 | ? 'pl-0'
|
|
108 | 109 | '[&_[class^=tiny-autocomplete]]:w-full',
|
109 | 110 | '[&_[class^=tiny-cascader]]:w-full',
|
110 | 111 | state.isDisplayOnly
|
111 |
| - ? '[&_>*:not([data-tag^=tiny-],[class^=tiny-])]:leading-8 [&_>*:not([data-tag^=tiny-],[class^=tiny-])]:sm:leading-normal' |
112 |
| - : '' |
| 112 | + ? 'sm:leading-5.5 [&_>*:not([data-tag^=tiny-],[class^=tiny-])]:leading-8 [&_>*:not([data-tag^=tiny-],[class^=tiny-])]:sm:leading-normal' |
| 113 | + : '[&_[data-tag=tiny-checkbox]]:h-7 [&_[data-tag=tiny-radio]]:h-7' |
113 | 114 | ]"
|
114 | 115 | >
|
115 | 116 | <slot></slot>
|
|
0 commit comments