From 9f65d427a08ce95d4a39a1103493a9082bacf7da Mon Sep 17 00:00:00 2001 From: Daniel Bedeleanu Date: Wed, 22 Apr 2026 11:08:49 +0300 Subject: [PATCH] optimize: make debug panel more compact to fit screen Layout changes: - Reduced padding and margins throughout - Changed from 3-column to 2-column layout - Canvas + logs on right side (side-by-side) - Smaller fonts and spacing - Sticky header that stays in view - Max-height with scrolling for modal - Removed footer text to save space - More efficient use of screen real estate Now fits on most screen sizes even with large rotation angles. --- frontend/components/DebugRotationPanel.tsx | 64 +++++++++++----------- 1 file changed, 31 insertions(+), 33 deletions(-) diff --git a/frontend/components/DebugRotationPanel.tsx b/frontend/components/DebugRotationPanel.tsx index e1a44b8f..03504af7 100644 --- a/frontend/components/DebugRotationPanel.tsx +++ b/frontend/components/DebugRotationPanel.tsx @@ -130,22 +130,22 @@ export function DebugRotationPanel({ }, [imageLoaded, rotation, originalCropBounds, scaledDimensions]); return ( -
-
+
+
{/* Header */} -
-

🔧 Debug Rotation & Crop

+
+

🔧 Debug Rotation & Crop

-
+
{/* Left: Controls */} -
+
{/* Rotation Slider */}
- {/* Center: Canvas Preview */} -
-

Original Image with Crop Box

-
- + {/* Center: Canvas Preview + Right: Logs */} +
+ {/* Canvas */} +
+

Image Preview

+
+ +
+
+ 🟢 Crop + 🟠 Rotate +
-
-
🟢 Green = Crop area
-
🟠 Orange = Rotation effect
+ + {/* Logs */} +
+

Logs

+
+ {logs.map((log, i) => ( +
{log}
+ ))} +
- - {/* Right: Logs */} -
-

Debug Logs

-
- {logs.map((log, i) => ( -
{log}
- ))} -
-
-
- - {/* Footer */} -
- Find the rotation angle that makes the label text readable, then report the value back.