@@ -6,12 +6,12 @@ export default function Prediction({ prediction, requestBody, setPrediction }) {
6
6
setPrediction ( null ) ;
7
7
} ;
8
8
return (
9
- < div className = "max-w-[1200px] mx-auto py-5 px-7 flex flex-col gap-5 justify-center" >
9
+ < div className = "max-w-[1200px] mx-auto lg: py-5 lg: px-7 px-5 py-3 flex flex-col gap-5 justify-center" >
10
10
< div className = "text-right" >
11
11
< BaseButton onClick = { rePredict } title = "Repredict" />
12
12
</ div >
13
13
< div class = "relative w-full shadow-md sm:rounded-lg bg-white px-4" >
14
- < table class = "w-full text-sm text-left rtl:text-right text-gray-500 " >
14
+ < table class = "w-full text-sm text-left rtl:text-right text-gray-500 " >
15
15
< tr >
16
16
< th
17
17
scope = "col"
@@ -20,8 +20,8 @@ export default function Prediction({ prediction, requestBody, setPrediction }) {
20
20
Prediction Table
21
21
</ th >
22
22
</ tr >
23
- < tbody >
24
- < tr class = "bg-white flex gap-5" >
23
+ < tbody className = "text-xs md:text-sm lg:text-base" >
24
+ < tr class = "flex flex-col lg: flex-row lg: gap-5 md:gap-3 " >
25
25
< div className = "w-full border-b flex justify-between" >
26
26
< th scope = "row" class = "px-2 py-4 font-medium whitespace-nowrap" >
27
27
No of Layers
@@ -35,7 +35,7 @@ export default function Prediction({ prediction, requestBody, setPrediction }) {
35
35
< td class = "px-2 py-4 " > { prediction . num_neurons_per_layer } </ td >
36
36
</ div >
37
37
</ tr >
38
- < tr class = "bg-white gap-5 flex" >
38
+ < tr class = "lg:gap-5 md: gap-3 flex flex-col lg:flex-row " >
39
39
< div className = "w-full border-b flex justify-between" >
40
40
< th scope = "row" class = "px-2 py-4 font-medium whitespace-nowrap" >
41
41
Training Computation
@@ -59,7 +59,7 @@ export default function Prediction({ prediction, requestBody, setPrediction }) {
59
59
</ td >
60
60
</ div >
61
61
</ tr >
62
- < tr class = "bg-white flex gap-5" >
62
+ < tr class = "flex lg: gap-5 md:gap-3 flex-col lg:flex-row " >
63
63
< div className = "w-full border-b flex justify-between" >
64
64
< th scope = "row" class = "px-2 py-4 font-medium whitespace-nowrap" >
65
65
Eikonal Identification
@@ -83,7 +83,7 @@ export default function Prediction({ prediction, requestBody, setPrediction }) {
83
83
</ td >
84
84
</ div >
85
85
</ tr >
86
- < tr class = "bg-white flex gap-5" >
86
+ < tr class = "flex lg: gap-5 md:gap-3 flex-col lg:flex-row " >
87
87
< div className = "w-full border-b flex justify-between" >
88
88
< th scope = "row" class = "px-2 py-4 font-medium whitespace-nowrap" >
89
89
Mean Of Lambda
@@ -107,7 +107,7 @@ export default function Prediction({ prediction, requestBody, setPrediction }) {
107
107
</ td >
108
108
</ div >
109
109
</ tr >
110
- < tr class = "bg-white flex gap-5" >
110
+ < tr class = "flex lg: gap-5 md:gap-3 " >
111
111
< div className = "w-full border-b flex justify-between" >
112
112
< th scope = "row" class = "px-2 py-4 font-medium whitespace-nowrap" >
113
113
Xmax
@@ -121,7 +121,7 @@ export default function Prediction({ prediction, requestBody, setPrediction }) {
121
121
< td class = "px-2 py-4" > { requestBody . lowerBound } </ td >
122
122
</ div >
123
123
</ tr >
124
- < tr class = "bg-white flex gap-5" >
124
+ < tr class = "flex lg: gap-5 md:gap-3 " >
125
125
< div className = "w-full border-b flex justify-between" >
126
126
< th scope = "row" class = "px-2 py-4 font-medium whitespace-nowrap" >
127
127
Tmax
@@ -135,7 +135,7 @@ export default function Prediction({ prediction, requestBody, setPrediction }) {
135
135
< td class = "px-2 py-4" > { requestBody . minimumTemprature } </ td >
136
136
</ div >
137
137
</ tr >
138
- < tr class = "bg-white flex gap-5" >
138
+ < tr class = "flex lg: gap-5 md:gap-3 " >
139
139
< div className = "w-full border-b flex justify-between" >
140
140
< th scope = "row" class = "px-2 py-4 font-medium whitespace-nowrap" >
141
141
Lambda Error
@@ -154,23 +154,23 @@ export default function Prediction({ prediction, requestBody, setPrediction }) {
154
154
</ tbody >
155
155
</ table >
156
156
</ div >
157
- < div className = "flex gap-3" >
157
+ < div className = "flex gap-3 flex-col lg:flex-row " >
158
158
< Image
159
- className = "w-1/2"
159
+ className = "md: w-1/2 w-full rounded-lg "
160
160
src = { prediction . solution_of_burgers . image }
161
161
width = { 450 }
162
162
height = { 600 }
163
163
alt = "Burger Solution"
164
164
/>
165
165
< Image
166
- className = "w-1/2"
166
+ className = "md: w-1/2 w-full rounded-lg "
167
167
src = { prediction . solution_of_burgers . loss }
168
168
width = { 450 }
169
169
height = { 600 }
170
170
alt = "Burger Solution Loss"
171
171
/>
172
172
</ div >
173
- < div className = "flex justify-center" >
173
+ < div className = "flex justify-center -mt-2 md:mt-0 w-full " >
174
174
< Image
175
175
className = "rounded-lg"
176
176
src = { prediction . collocation_points }
0 commit comments