TheYuchen commited on
Commit
a62ec36
·
1 Parent(s): 78949f0

Toolbar: evidence-cluster divider + label gate at lg, not md

Browse files

In the 768-1024 range the evidence cluster's border-l divider (md-
gated) rendered while the cluster wrapped, reading as a clipped stray
rule next to the faint lg-only "evidence" label. Divider now hides
below lg with the label; the grouping stays implied by spacing, the
cluster still wraps as a unit (outer flex-wrap + min-w-0), and Run
stays reachable without horizontal scroll at every width >= 768px.

frontend/src/components/FlowCanvas.tsx CHANGED
@@ -1340,18 +1340,21 @@ export function FlowCanvas() {
1340
  Everything here shapes or prices the evidence the next Run
1341
  buys: pinned seed, replicate count, optional-stopping
1342
  target, cost estimate, and Run itself. Visually separated
1343
- from authoring (divider + faint group label at ≥md) so the
1344
  toolbar reads as two questions — "what am I composing?" vs
1345
  "what will the next run measure?". min-w-0 (NOT shrink-0)
1346
  is what lets flex-wrap actually engage; justify-end keeps
1347
  continuation lines right-aligned, so Run stays in the
1348
- bottom-right corner where the eye expects it. Below md
1349
- every control here is hidden (the Run FAB takes over), so
1350
- the divider is md-gated too. */}
 
 
 
1351
  <div
1352
  role="group"
1353
  aria-label="Evidence controls for the next run"
1354
- className="flex flex-wrap items-center justify-end gap-1.5 sm:gap-2 gap-y-1 min-w-0 md:border-l md:border-edge/60 md:pl-3"
1355
  >
1356
  <span
1357
  className="hidden lg:inline text-[9px] uppercase tracking-wider text-mute/70 select-none"
 
1340
  Everything here shapes or prices the evidence the next Run
1341
  buys: pinned seed, replicate count, optional-stopping
1342
  target, cost estimate, and Run itself. Visually separated
1343
+ from authoring (divider + faint group label at ≥lg) so the
1344
  toolbar reads as two questions — "what am I composing?" vs
1345
  "what will the next run measure?". min-w-0 (NOT shrink-0)
1346
  is what lets flex-wrap actually engage; justify-end keeps
1347
  continuation lines right-aligned, so Run stays in the
1348
+ bottom-right corner where the eye expects it. The divider
1349
+ is lg-gated: in the 768-1024 band the wrapped cluster made
1350
+ the border-l + pl-3 read as a clipped stray rule next to
1351
+ the label, so below lg the grouping is implied by spacing
1352
+ alone; below md every control here is hidden anyway (the
1353
+ Run FAB takes over). */}
1354
  <div
1355
  role="group"
1356
  aria-label="Evidence controls for the next run"
1357
+ className="flex flex-wrap items-center justify-end gap-1.5 sm:gap-2 gap-y-1 min-w-0 lg:border-l lg:border-edge/60 lg:pl-3"
1358
  >
1359
  <span
1360
  className="hidden lg:inline text-[9px] uppercase tracking-wider text-mute/70 select-none"