From febdc29504c814901cadf9ff2d6ecb46ce381073 Mon Sep 17 00:00:00 2001 From: laddyr141-ui Date: Tue, 20 Oct 2026 01:28:43 +0100 Subject: [PATCH] Fix #894: make version comparison modal responsive on mobile The ComparisonView diff grid in VersionHistory.tsx was hardcoded to grid-cols-2, forcing two cramped font-mono columns side by side even on narrow mobile viewports. Switch to grid-cols-1 sm:grid-cols-2 so the before/after columns stack on small screens, and tighten modal padding at the sm breakpoint. --- src/components/VersionHistory.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/VersionHistory.tsx b/src/components/VersionHistory.tsx index 4f47f428..2ce44503 100644 --- a/src/components/VersionHistory.tsx +++ b/src/components/VersionHistory.tsx @@ -198,7 +198,7 @@ function ComparisonView({ left, right, onClose }: ComparisonViewProps) { >
{/* Header */} -
+

Version Comparison

@@ -218,7 +218,7 @@ function ComparisonView({ left, right, onClose }: ComparisonViewProps) {

{/* Column headers */} -
+
v{left.versionNumber} — {left.action}
@@ -228,7 +228,7 @@ function ComparisonView({ left, right, onClose }: ComparisonViewProps) {
{/* Comparison body */} -
+
{allFields.length === 0 ? (
No field-level changes recorded for either version. @@ -239,7 +239,7 @@ function ComparisonView({ left, right, onClose }: ComparisonViewProps) { const leftDiff = leftDiffs.find((d) => d.field === field); const rightDiff = rightDiffs.find((d) => d.field === field); return ( -
+
{field}