diff --git a/client/src/components/InputField.jsx b/client/src/components/InputField.jsx index 6223222..320cb79 100644 --- a/client/src/components/InputField.jsx +++ b/client/src/components/InputField.jsx @@ -22,6 +22,7 @@ export default function InputField({ link = null, externalLink = false, large = false, + small = false, noInput = false, error = false, cols = 5, @@ -68,13 +69,15 @@ export default function InputField({ onChange={onChange} onBlur={onBlur} id={name} - className={`${className} sds--text-area ${large ? "large" : ""}`} + + className={`${className} sds--text-area ${large ? "large" : ""} ${small ? "small" : ""}`} onKeyDown={e => { if (onEnter && e.keyCode === 13) {//enter onEnter(e); } }} - placeholder={placeholder} cols={cols}/>} + placeholder={placeholder} + cols={cols}/>} {button && button} {copyClipBoard && } {link &&
navigate(link)}> diff --git a/client/src/components/InputField.scss b/client/src/components/InputField.scss index 40469fe..346820b 100644 --- a/client/src/components/InputField.scss +++ b/client/src/components/InputField.scss @@ -38,6 +38,10 @@ textarea { height: 90px; + &.small { + height: 51px; + } + &.large { height: 170px; } diff --git a/client/src/pages/InvitationForm.js b/client/src/pages/InvitationForm.js index b42d15e..af0b2bf 100644 --- a/client/src/pages/InvitationForm.js +++ b/client/src/pages/InvitationForm.js @@ -259,7 +259,8 @@ export const InvitationForm = () => { value={invitation.message} onChange={e => setInvitation({...invitation, message: e.target.value})} placeholder={I18n.t("invitations.messagePlaceholder")} - large={true} + small={true} + cols={1} multiline={true}/>