Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
update create bench form wording | fix drop shadow
Browse files
frontend/src/components/Benchmark/CreateForm.jsx
CHANGED
@@ -216,7 +216,10 @@ function CreateForm({ onStartGeneration }) {
|
|
216 |
: `2px solid ${theme.palette.divider}`,
|
217 |
"&:hover": {
|
218 |
transform: "translateY(-2px)",
|
219 |
-
boxShadow:
|
|
|
|
|
|
|
220 |
},
|
221 |
}}
|
222 |
onClick={() => handleDefaultDocClick(doc)}
|
@@ -271,7 +274,7 @@ function CreateForm({ onStartGeneration }) {
|
|
271 |
<Box
|
272 |
sx={{
|
273 |
display: "flex",
|
274 |
-
flexDirection: { xs: "column",
|
275 |
gap: 2,
|
276 |
mb: 2,
|
277 |
}}
|
@@ -294,6 +297,7 @@ function CreateForm({ onStartGeneration }) {
|
|
294 |
: "transparent",
|
295 |
display: "flex",
|
296 |
flexDirection: "column",
|
|
|
297 |
alignItems: "center",
|
298 |
justifyContent: "center",
|
299 |
minHeight: 180,
|
@@ -350,7 +354,7 @@ function CreateForm({ onStartGeneration }) {
|
|
350 |
sx={{
|
351 |
flex: 1,
|
352 |
p: 4,
|
353 |
-
mt: 2,
|
354 |
borderRadius: 1.5,
|
355 |
border: urlSelected
|
356 |
? `2px solid ${theme.palette.primary.main}`
|
@@ -359,6 +363,7 @@ function CreateForm({ onStartGeneration }) {
|
|
359 |
flexDirection: "column",
|
360 |
alignItems: "center",
|
361 |
justifyContent: "center",
|
|
|
362 |
minHeight: 180,
|
363 |
transition: "all 0.3s ease",
|
364 |
}}
|
@@ -401,7 +406,7 @@ function CreateForm({ onStartGeneration }) {
|
|
401 |
<Typography variant="h6" component="div" gutterBottom>
|
402 |
{isLoading && urlSelected
|
403 |
? "Processing URL..."
|
404 |
-
: "Enter
|
405 |
</Typography>
|
406 |
<TextField
|
407 |
fullWidth
|
@@ -427,7 +432,7 @@ function CreateForm({ onStartGeneration }) {
|
|
427 |
sx={{ mt: 2 }}
|
428 |
>
|
429 |
{!sessionId
|
430 |
-
? "
|
431 |
: isDefaultDocument
|
432 |
? `Generate Benchmark from "${selectedDocument?.name}"`
|
433 |
: urlSelected
|
|
|
216 |
: `2px solid ${theme.palette.divider}`,
|
217 |
"&:hover": {
|
218 |
transform: "translateY(-2px)",
|
219 |
+
boxShadow: `0px 3px 6px ${alpha(
|
220 |
+
theme.palette.common.black,
|
221 |
+
0.1
|
222 |
+
)}`,
|
223 |
},
|
224 |
}}
|
225 |
onClick={() => handleDefaultDocClick(doc)}
|
|
|
274 |
<Box
|
275 |
sx={{
|
276 |
display: "flex",
|
277 |
+
flexDirection: { xs: "column", sm: "row" },
|
278 |
gap: 2,
|
279 |
mb: 2,
|
280 |
}}
|
|
|
297 |
: "transparent",
|
298 |
display: "flex",
|
299 |
flexDirection: "column",
|
300 |
+
textAlign: "center",
|
301 |
alignItems: "center",
|
302 |
justifyContent: "center",
|
303 |
minHeight: 180,
|
|
|
354 |
sx={{
|
355 |
flex: 1,
|
356 |
p: 4,
|
357 |
+
mt: { xs: 0, sm: 2 },
|
358 |
borderRadius: 1.5,
|
359 |
border: urlSelected
|
360 |
? `2px solid ${theme.palette.primary.main}`
|
|
|
363 |
flexDirection: "column",
|
364 |
alignItems: "center",
|
365 |
justifyContent: "center",
|
366 |
+
textAlign: "center",
|
367 |
minHeight: 180,
|
368 |
transition: "all 0.3s ease",
|
369 |
}}
|
|
|
406 |
<Typography variant="h6" component="div" gutterBottom>
|
407 |
{isLoading && urlSelected
|
408 |
? "Processing URL..."
|
409 |
+
: "Enter website address"}
|
410 |
</Typography>
|
411 |
<TextField
|
412 |
fullWidth
|
|
|
432 |
sx={{ mt: 2 }}
|
433 |
>
|
434 |
{!sessionId
|
435 |
+
? "Generate benchmark"
|
436 |
: isDefaultDocument
|
437 |
? `Generate Benchmark from "${selectedDocument?.name}"`
|
438 |
: urlSelected
|