|
237 | 237 | v-if="state.isWordLimitVisible" |
238 | 238 | class="h-full inline-flex items-center text-xs sm:text-sm text-color-text-placeholder" |
239 | 239 | > |
240 | | - <span class="bg-color-bg-1 leading-none inline-block">{{ |
| 240 | + <span class="bg-color-bg-1 leading-none inline-block text-xs">{{ |
241 | 241 | state.showWordLimit ? `${state.textLength}/${state.upperLimit}` : state.textLength |
242 | 242 | }}</span> |
243 | 243 | </span> |
|
290 | 290 | class="text-box max-w-full break-words line-clamp-5 text-sm text-color-text-primary before:content-[''] before:float-right before:h-full before:-mb-4" |
291 | 291 | :class="[ |
292 | 292 | state.inputSizeMf !== 'mini' ? 'sm:text-sm' : 'sm:text-xs', |
293 | | - hoverExpand && 'relative left-0 max-w-full leading-normal line-clamp-1', |
| 293 | + hoverExpand && 'relative left-0 max-w-full leading-5 line-clamp-1', |
294 | 294 | autosize |
295 | | - ? 'left-0 max-w-full break-words whitespace-pre-line leading-normal' |
| 295 | + ? 'left-0 max-w-full break-words whitespace-pre-line leading-5' |
296 | 296 | : 'left-0 max-w-full text-ellipsis overflow-hidden break-words whitespace-pre-wrap line-clamp-5' |
297 | 297 | ]" |
298 | 298 | @click="state.showDisplayOnlyBox = true" |
|
329 | 329 | state.isDisplayOnly ? 'hidden' : '', |
330 | 330 | state.inputSizeMf !== 'mini' ? 'sm:placeholder:text-sm sm:text-sm' : 'sm:placeholder:text-xs sm:text-xs', |
331 | 331 | hoverExpand && 'min-w-40 absolute h-7 z-[2000] top-0 left-0', |
332 | | - hoverExpand && state.enteredTextarea ? 'py-2 leading-normal' : 'py-0 leading-[1.625rem]', |
| 332 | + hoverExpand && state.enteredTextarea ? 'py-2 leading-normal' : 'py-0 leading-5.5', |
333 | 333 | hoverExpand && !state.enteredTextarea && 'min-h-7 px-2 leading-7 overflow-hidden' |
334 | 334 | ]" |
335 | 335 | @compositionstart="handleCompositionStart" |
|
353 | 353 | <span |
354 | 354 | data-tag="tiny-input-limit" |
355 | 355 | v-if="state.isWordLimitVisible && type === 'textarea'" |
356 | | - class="bg-color-bg-1 text-color-text-placeholder text-xs sm:text-sm absolute bottom-1 right-3" |
| 356 | + class="text-color-text-placeholder text-xs leading-5 absolute bottom-0 right-3" |
357 | 357 | >{{ state.showWordLimit ? `${state.textLength}/${state.upperLimit}` : state.textLength }}</span |
358 | 358 | > |
359 | 359 | <slot></slot> |
|
0 commit comments