From 5b047774e29e7fb08b7dcfbceaed23c6155467f2 Mon Sep 17 00:00:00 2001 From: Pranav Mathad Date: Sun, 29 Nov 2026 07:34:39 +0100 Subject: [PATCH] Hide the not simulated line on the finding page --- web/src/routes/finding/Reading.tsx | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/web/src/routes/finding/Reading.tsx b/web/src/routes/finding/Reading.tsx index 61d8e61d..ec00667c 100644 --- a/web/src/routes/finding/Reading.tsx +++ b/web/src/routes/finding/Reading.tsx @@ -175,19 +175,23 @@ function SimulationStrip({ repo, f }: { repo: RepoBundle; f: Finding }) { const kind = sim?.kind ?? "not-simulated"; const shown = fix !== null && sim !== null && kind !== "not-simulated" && kind !== "nothing-changed"; + const showLine = fix === null || kind !== "not-simulated"; const mapBase = repoPath(repo.id, "map"); return (
-

- Simulation - - {fix ? SIMULATION[kind].long : NO_FIX_TEXT} - - -

-
+ {showLine && ( +

+ Simulation + + {fix ? SIMULATION[kind].long : NO_FIX_TEXT} + + +

+ )} + {/* ml-auto keeps the buttons on the right when the line is hidden */} +