fix: correctly calculate textarea min height
commit44049eb3f11d38b693b0f75eb108169b3ed4753f
authorMatt Condon (shrugs) <mattgcondon@gmail.com>
dateTue 6 Aug 2019, 23:42 (7 years ago)
parentd27f157
src/indigo-react/components/Input.js+1−3
@@ -74,9 +74,7 @@ export default React.memo(function Input({
7474 type={type === 'textarea' ? undefined : type}
7575 {...rest}
7676 // NOTE: 1.15 from input line-height, 24px = 12px * 2 (from p3 styling)
77− style={
78− type === 'textarea' ? { minHeight: 'calc(1.15rem * 2 + 24px)' } : {}
79− }
77+ style={type === 'textarea' ? { minHeight: 'calc(1.5rem * 3)' } : {}}
8078 className={cn(
8179 'b b1 p3 outline-none',
8280 { mono },