Contact Modal - More space within mobile view

This commit is contained in:
Camerin 2022-06-12 14:36:51 -04:00
parent f4873e1fff
commit 86f681eb3a
2 changed files with 25 additions and 2 deletions

View File

@ -54,7 +54,30 @@
height: fit-content; height: fit-content;
} }
.modal input.large { .modal textarea {
display:flex;
text-align: start;
justify-content: start;
}
.modal textarea.large {
height: 10rem; height: 10rem;
width: 20rem; width: 20rem;
} }
@media only screen and (max-width: 600px) {
.modal .box {
border: 2px solid #544545;
border-radius: 10px;
background-color: white;
padding: 25px;
max-width: 80vw;
}
.modal textarea.large {
height: 15rem;
width: auto;
}
}

View File

@ -26,7 +26,7 @@ const ContactModal = props => {
// Render the contact modal form // Render the contact modal form
return ( return (
<form onSubmit={(e)=>onSubmit(e)}> <form onSubmit={(e)=>onSubmit(e)}>
<input className="large" onKeyUp={(e)=>{props.updateEmailBody(e);}}/> <textarea className="large" onKeyUp={(e)=>{props.updateEmailBody(e);}}/>
<button>Open In Email Editor</button> <button>Open In Email Editor</button>
</form> </form>
); );