File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export default function StarsFilter() {
38
38
39
39
return (
40
40
< form
41
- className = "w-full m-2 mx-auto mb-4 lg:w-2/4 form-control"
41
+ className = "w-full m-2 mx-auto mb-4 lg:w-2/4 form-control px-2 "
42
42
onSubmit = { handleSubmit ( onSubmit ) }
43
43
>
44
44
< div className = "flex gap-2 flex-col sm:flex-row" >
@@ -47,7 +47,7 @@ export default function StarsFilter() {
47
47
render = { ( { field } ) => (
48
48
< input
49
49
type = "number"
50
- className = "w-3/5 text-neutral-100 m-auto sm:w-full pr-4 input input-bordered border-2023-bavarian-gold-2 focus:outline-2023-bavarian-gold-2 bg-transparent"
50
+ className = "w-3/5 text-neutral-100 m-auto sm:w-full pr-4 input input-bordered border-2023-bavarian-gold-2 focus:outline-2023-bavarian-gold-2 bg-transparent text-center md:text-left "
51
51
{ ...field }
52
52
onChange = { e => {
53
53
field . onChange ( parseInt ( e . target . value , 10 ) ) ;
@@ -63,7 +63,7 @@ export default function StarsFilter() {
63
63
render = { ( { field } ) => (
64
64
< input
65
65
type = "number"
66
- className = "w-3/5 text-neutral-100 m-auto sm:w-full pr-4 input input-bordered border-2023-bavarian-gold-2 focus:outline-2023-bavarian-gold-2 bg-transparent"
66
+ className = "w-3/5 text-neutral-100 m-auto sm:w-full pr-4 input input-bordered border-2023-bavarian-gold-2 focus:outline-2023-bavarian-gold-2 bg-transparent text-center md:text-left "
67
67
{ ...field }
68
68
onChange = { e => {
69
69
field . onChange ( parseInt ( e . target . value , 10 ) ) ;
@@ -75,9 +75,15 @@ export default function StarsFilter() {
75
75
control = { control }
76
76
/>
77
77
78
- < button className = "btn btn-ghost ml-2 text-2023-manga-2 ring-1 ring-2023-manga-2" type = "submit" >
79
- Search
80
- </ button >
78
+ { /* Flex container to center the button */ }
79
+ < div className = "flex justify-center items-center" >
80
+ < button
81
+ className = "btn btn-ghost text-2023-manga-2 ring-1 ring-2023-manga-2 mx-auto w-3/5 md:w-full"
82
+ type = "submit"
83
+ >
84
+ Search
85
+ </ button >
86
+ </ div >
81
87
</ div >
82
88
</ form >
83
89
) ;
You can’t perform that action at this time.
0 commit comments