diff --git a/packages/ui/components/DiffTypeSetupDialog.tsx b/packages/ui/components/DiffTypeSetupDialog.tsx index 4729aa3..d3c350b 100644 --- a/packages/ui/components/DiffTypeSetupDialog.tsx +++ b/packages/ui/components/DiffTypeSetupDialog.tsx @@ -38,6 +38,7 @@ export const DiffTypeSetupDialog: React.FC = ({ const [selected, setSelected] = useState( () => configStore.get('defaultDiffType') ); + const [imageHovered, setImageHovered] = useState(false); const handleDone = () => { configStore.set('defaultDiffType', selected); @@ -47,63 +48,83 @@ export const DiffTypeSetupDialog: React.FC = ({ return createPortal(
-
+
{/* Header */}

Set Your Default Diff View

Pick which changes you want to see when you open a code review. - This is just the default — you can switch anytime using the dropdown in the toolbar.

- {/* Options */} -
- {OPTIONS.map((opt) => ( - - ))} -
+ {/* Body: 60/40 split */} +
+ {/* Left: options (60%) */} +
+ {OPTIONS.map((opt) => ( + + ))} +
- {/* Inline hint with screenshot */} -
-
- Diff type dropdown in the toolbar -

- You can switch between diff views at any point during a review using this dropdown in the toolbar. The option you pick here just sets your starting view. + {/* Right: image preview + hint (40%) */} +

+
setImageHovered(true)} + onMouseLeave={() => setImageHovered(false)} + > + Diff type dropdown in the toolbar + {!imageHovered && ( +
+ + hover to preview + +
+ )} +
+

+ You can switch views anytime during a review using this dropdown in the toolbar.

{/* Footer */} -
+