Skip to content

Commit d5e101a

Browse files
committed
Reworked UI, add section visibility config
1 parent e2581b7 commit d5e101a

8 files changed

Lines changed: 343 additions & 89 deletions

File tree

client/app.css

Lines changed: 102 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,14 @@
204204
min-width: 0;
205205
}
206206

207+
.bespoke .pl-speed-group {
208+
display: flex;
209+
align-items: center;
210+
gap: var(--UI-Spacing-spacing-s);
211+
flex: 1;
212+
min-width: 0;
213+
}
214+
207215
.bespoke .pl-control-label {
208216
font-size: var(--Fonts-Body-Default-sm);
209217
font-weight: 500;
@@ -265,6 +273,88 @@
265273
padding: 0 var(--UI-Spacing-spacing-ml);
266274
}
267275

276+
/* ===== COMPACT RUN TRIALS PANEL LAYOUT ===== */
277+
278+
.bespoke .pl-run-card {
279+
padding: var(--UI-Spacing-spacing-ml) !important;
280+
}
281+
282+
.bespoke .pl-run-grid {
283+
display: grid;
284+
grid-template-columns: minmax(420px, 1fr) 320px;
285+
gap: var(--UI-Spacing-spacing-xl);
286+
align-items: start;
287+
}
288+
289+
.bespoke .pl-run-right {
290+
display: flex;
291+
flex-direction: column;
292+
gap: var(--UI-Spacing-spacing-s);
293+
}
294+
295+
/* Reduce padding in controls when inside run card */
296+
.bespoke .pl-run-card .pl-trial-controls {
297+
padding: 0;
298+
margin-bottom: 0;
299+
}
300+
301+
/* Compact device section in run card */
302+
.bespoke .pl-run-card .pl-device-section {
303+
padding: var(--UI-Spacing-spacing-s) 0;
304+
margin-bottom: 0;
305+
display: flex;
306+
align-items: center;
307+
justify-content: center;
308+
}
309+
310+
/* Smaller device size in run card */
311+
.bespoke .pl-run-card #pl-device-view.pl-device {
312+
width: 120px;
313+
height: 120px;
314+
}
315+
316+
.bespoke .pl-run-card .pl-device .pl-coin,
317+
.bespoke .pl-run-card .pl-device .pl-die,
318+
.bespoke .pl-run-card .pl-device .pl-spinner {
319+
width: 90px;
320+
height: 90px;
321+
}
322+
323+
.bespoke .pl-run-card .pl-device .pl-coin {
324+
font-size: 42px;
325+
}
326+
327+
.bespoke .pl-run-card .pl-device .pl-die {
328+
border-radius: 16px;
329+
}
330+
331+
.bespoke .pl-run-card .pl-device .pl-die .pl-pip {
332+
width: 11px;
333+
height: 11px;
334+
}
335+
336+
.bespoke .pl-run-card .pl-device .pl-spinner-pointer {
337+
border-left-width: 8px;
338+
border-right-width: 8px;
339+
border-bottom-width: 14px;
340+
top: -5px;
341+
}
342+
343+
/* Compact metrics in run card */
344+
.bespoke .pl-run-card .pl-trial-metrics {
345+
padding-top: var(--UI-Spacing-spacing-s);
346+
border-top: 1px solid var(--Colors-Stroke-Light);
347+
gap: var(--UI-Spacing-spacing-xs);
348+
}
349+
350+
.bespoke .pl-run-card .pl-trial-metric {
351+
padding: var(--UI-Spacing-spacing-xs) var(--UI-Spacing-spacing-s);
352+
}
353+
354+
.bespoke .pl-run-card .pl-trial-metric .pl-metric-value {
355+
font-size: var(--Fonts-Body-Default-xl);
356+
}
357+
268358
/* ===== LIVE TRIAL DEVICE SECTION ===== */
269359

270360
.bespoke .pl-device-section {
@@ -331,19 +421,9 @@
331421
min-height: 100%;
332422
}
333423

334-
.bespoke .pl-top-grid {
424+
.bespoke .pl-content-grid {
335425
display: grid;
336-
grid-template-columns: 1fr 1fr;
337-
gap: var(--UI-Spacing-spacing-xl);
338-
}
339-
340-
.bespoke #probability-lab[data-mode="two"] .pl-top-grid {
341-
grid-template-columns: 1fr;
342-
}
343-
344-
.bespoke .pl-bottom-grid {
345-
display: grid;
346-
grid-template-columns: 1.2fr 1fr;
426+
grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
347427
gap: var(--UI-Spacing-spacing-xl);
348428
}
349429

@@ -962,13 +1042,6 @@
9621042
border-bottom: 1px solid var(--Colors-Stroke-Default);
9631043
}
9641044

965-
.bespoke .pl-top-grid {
966-
grid-template-columns: 1fr;
967-
}
968-
969-
.bespoke .pl-bottom-grid {
970-
grid-template-columns: 1fr;
971-
}
9721045

9731046
.bespoke .pl-two-config-grid {
9741047
grid-template-columns: 1fr;
@@ -1009,6 +1082,16 @@
10091082
.bespoke .pl-trial-metrics {
10101083
grid-template-columns: 1fr;
10111084
}
1085+
1086+
/* Stack run trials grid on mobile */
1087+
.bespoke .pl-run-grid {
1088+
grid-template-columns: 1fr;
1089+
gap: var(--UI-Spacing-spacing-ml);
1090+
}
1091+
1092+
.bespoke .pl-run-card .pl-trial-controls {
1093+
padding: 0;
1094+
}
10121095
}
10131096

10141097
/* ===== NUMERIC SLIDER INPUT VISIBILITY FIX ===== */

0 commit comments

Comments
 (0)