forked from opentiny/tiny-vue
fix: fix mobile-first long word bug (#3228)
This commit is contained in:
parent
01ab6a8ee4
commit
072c11c999
|
|
@ -26,7 +26,7 @@
|
|||
v-if="slots.label || label"
|
||||
:class="
|
||||
m(
|
||||
'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',
|
||||
'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',
|
||||
'overflow-hidden text-ellipsis',
|
||||
state.labelPosition === 'top'
|
||||
? '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)]'
|
||||
|
|
@ -73,7 +73,7 @@
|
|||
data-tag="tiny-form-item-inline"
|
||||
:class="
|
||||
m(
|
||||
`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`,
|
||||
`min-w-0 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`,
|
||||
'[&_[data-tag=tiny-checkbox]]:py-0 [&_[data-tag=tiny-input]]:w-full',
|
||||
'[&_[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',
|
||||
state.formInline ? 'align-sub leading-none' : '',
|
||||
|
|
|
|||
Loading…
Reference in New Issue