From 52e4707c5016297259996712cb8e8e4b9fd444d2 Mon Sep 17 00:00:00 2001 From: BigSimmo <87357024+BigSimmo@users.noreply.github.com> Date: Sun, 12 Jul 2026 02:18:36 +0800 Subject: [PATCH 1/2] Compact document-viewer redesign: dedup chrome, honest cards, tighter PDF surface MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Addresses a 20-point design review of the document viewer: - Nav chrome: drop the redundant Answer|Documents toggle and the ‹Documents breadcrumb; header is now back-arrow + document
{image.clinicalUseReason}
+ ) : null; + + // The image preview and its extracted table are the same content; when a + // structured table is available it leads and the raw image collapses behind a + // disclosure so the card is not doubled in height. + const imageBlock = ( +@@ -457,73 +516,43 @@ function DocumentImage({ image }: { image: ImageRow }) { ? ` · ${image.clinicalUseClass.replaceAll("_", " ")}` : ""}
-{tableHeading}
: null} + {showImageCaptionLine ?{cleanCaption}
: null} +{tableHeading}
: null} + {showImageCaptionLine ?{cleanCaption}
: null} + {image.tableTextSnippet ? ( +{image.tableTextSnippet}
) : null} -{tableHeading}
: null} - {showImageCaptionLine ?{cleanCaption}
: null} -{image.tableTextSnippet}
- ) : null} - {image.clinicalUseClass && image.clinicalUseClass !== "clinical_evidence" && image.clinicalUseReason ? ( -{image.clinicalUseReason}
- ) : null} -- -
Source evidence
-- Open a cited answer passage to pin the exact indexed excerpt here. -
-
+
+ Open a cited answer passage to pin its exact indexed excerpt here.
+