mirror of
https://github.com/cgzirim/seek-tune.git
synced 2025-12-17 08:54:19 +00:00
Move submit button down on smaller devices.
This commit is contained in:
parent
2b86b1a28c
commit
994f160f03
2 changed files with 22 additions and 3 deletions
|
|
@ -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>
|
||||
);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue