Adjust styles for smaller screens
This commit is contained in:
parent
77c67168ad
commit
382bea2a21
@ -57,15 +57,18 @@ const Students = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<div className="flex items-center justify-between">
|
<div className="flex items-center justify-between flex-col gap-3 md:flex-row md:gap-0">
|
||||||
<div>
|
<div>
|
||||||
<button
|
<button
|
||||||
className="btn btn-success"
|
className="btn btn-success btn-xs md:btn-md"
|
||||||
onClick={() => navigate('/coordinator/add-student')}
|
onClick={() => navigate('/coordinator/add-student')}
|
||||||
>
|
>
|
||||||
Dodaj nowego studenta
|
Dodaj nowego studenta
|
||||||
</button>
|
</button>
|
||||||
<label className="ml-4 btn btn-success btn-outline" htmlFor="file">
|
<label
|
||||||
|
className="ml-4 btn btn-success btn-xs md:btn-md btn-outline"
|
||||||
|
htmlFor="file"
|
||||||
|
>
|
||||||
Importuj
|
Importuj
|
||||||
</label>
|
</label>
|
||||||
<input
|
<input
|
||||||
@ -78,16 +81,18 @@ const Students = () => {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex">
|
<div className="flex">
|
||||||
<select className="select select-bordered mr-3">
|
<select className="select select-xs md:select-md select-bordered mr-3">
|
||||||
{perPageOptions.map(({ value, label }) => (
|
{perPageOptions.map(({ value, label }) => (
|
||||||
<option onClick={() => setPerPage(value)}>{label}</option>
|
<option key={value} onClick={() => setPerPage(value)}>
|
||||||
|
{label}
|
||||||
|
</option>
|
||||||
))}
|
))}
|
||||||
</select>
|
</select>
|
||||||
<label className="label">
|
<label className="label">
|
||||||
<span className="mr-2">Tylko niezapisani</span>
|
<span className="mr-2 text-xs md:text-base">Tylko niezapisani</span>
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
className="checkbox"
|
className="checkbox checkbox-xs md:checkbox-md"
|
||||||
onChange={() => setShowGroupless(!showGroupless)}
|
onChange={() => setShowGroupless(!showGroupless)}
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
|
Loading…
Reference in New Issue
Block a user