Move submit button down on smaller devices.

This commit is contained in:
Chigozirim Igweamaka 2024-05-25 14:30:15 +01:00
parent 2b86b1a28c
commit 994f160f03
2 changed files with 22 additions and 3 deletions

View file

@ -39,7 +39,7 @@ const Form = ({ socket }) => {
return (
<form className={styles.Form} onSubmit={submitForm}>
<div style={{ flexGrow: 1 }}>
<div>Add songs to the server</div>
<div>Add new songs</div>
<input
type="text"
name="spotifyUrl"
@ -49,7 +49,12 @@ const Form = ({ socket }) => {
onChange={handleChange}
/>
</div>
<input type="submit" value="Submit" onClick={submitForm} />
<input
className={styles.Submit}
type="submit"
value="Submit"
onClick={submitForm}
/>
</form>
);
};

View file

@ -7,7 +7,8 @@ Form {
align-items: flex-end;
justify-content: center;
}
@media screen and (max-width: 550px) {
Form {
width: 100%;
@ -18,3 +19,16 @@ Form {
justify-content: center;
}
}
@media screen and (max-width: 750px) {
Form {
flex-direction: column;
align-items: flex-start;
}
Form input,Form div {
width: 100%;
display: block;
}
}