on master help sign in
fix: correctly calculate textarea min height
44049ebMatt Condon (shrugs)
src/indigo-react/components/Input.js+1−3
@@ -74,9 +74,7 @@ export default React.memo(function Input({
74 type={type === 'textarea' ? undefined : type}
74 type={type === 'textarea' ? undefined : type}
75 {...rest}
75 {...rest}
76 // NOTE: 1.15 from input line-height, 24px = 12px * 2 (from p3 styling)
76 // NOTE: 1.15 from input line-height, 24px = 12px * 2 (from p3 styling)
77− style={
78− type === 'textarea' ? { minHeight: 'calc(1.15rem * 2 + 24px)' } : {}
77+ style={type === 'textarea' ? { minHeight: 'calc(1.5rem * 3)' } : {}}
79− }
80 className={cn(
78 className={cn(
81 'b b1 p3 outline-none',
79 'b b1 p3 outline-none',
82 { mono },
80 { mono },