Skip to content

Commit f892d74

Browse files
committed
optimize(packages): ui: optimize textarea.
1 parent 65c0f04 commit f892d74

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packages/ui-variants/src/variants/textarea.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { VariantProps } from 'tailwind-variants';
44

55
export const textareaVariants = tv({
66
slots: {
7-
root: 'relative',
7+
root: 'relative overflow-hidden',
88
content: [
99
`flex w-full rounded-md border border-input bg-background`,
1010
`focus-visible:(outline-none ring-2 ring-offset-2 ring-offset-background ring-primary) disabled:(cursor-not-allowed opacity-50)`
@@ -14,27 +14,27 @@ export const textareaVariants = tv({
1414
variants: {
1515
size: {
1616
xs: {
17-
content: 'px-1.5 py-0.75 text-xs',
17+
content: 'px-1.5 py-0.75 text-xs min-h-6',
1818
count: 'text-xs'
1919
},
2020
sm: {
21-
content: 'px-2 py-0.75 text-sm',
21+
content: 'px-2 py-0.75 text-sm min-h-7',
2222
count: 'text-sm'
2323
},
2424
md: {
25-
content: 'px-2.5 py-1.25 text-sm',
25+
content: 'px-2.5 py-1.25 text-sm min-h-8',
2626
count: 'text-sm'
2727
},
2828
lg: {
29-
content: 'px-3 py-1.25 text-base',
29+
content: 'px-3 py-1.25 text-base min-h-9',
3030
count: 'text-base'
3131
},
3232
xl: {
33-
content: 'px-3.5 py-1.75 text-base',
33+
content: 'px-3.5 py-1.75 text-base min-h-10',
3434
count: 'text-base'
3535
},
3636
xxl: {
37-
content: 'px-4 py-2.25 text-lg',
37+
content: 'px-4 py-2.25 text-lg min-h-12',
3838
count: 'text-lg'
3939
}
4040
},

0 commit comments

Comments
 (0)