Skip to content

Commit feb3e3f

Browse files
committed
Remove rounded corners from diff hunks
1 parent 7df0123 commit feb3e3f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/ui/src/components/panels/diff/ZedDiffViewer.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,8 @@ export const ZedDiffViewer: React.FC<{
396396
--st-diff-line-height: 20px;
397397
/* Zed-like hunk padding (blank line feel). */
398398
--st-diff-hunk-pad-y: 30px;
399-
/* Zed-like hunk rounding. */
400-
--st-diff-hunk-radius: 16px;
399+
/* Zed-like: square hunks (no rounding). */
400+
--st-diff-hunk-radius: 0px;
401401
}
402402
403403
.st-diff-table.diff { table-layout: fixed; width: 100%; }
@@ -454,7 +454,7 @@ export const ZedDiffViewer: React.FC<{
454454
top: 6px;
455455
bottom: 6px;
456456
width: 4px;
457-
border-radius: 999px;
457+
border-radius: 0;
458458
background: var(--st-hunk-marker-color);
459459
opacity: 0.85;
460460
pointer-events: none;
@@ -463,7 +463,7 @@ export const ZedDiffViewer: React.FC<{
463463
.st-diff-table .diff-hunk:has(.diff-code-insert, .diff-code-delete)::after {
464464
content: '';
465465
position: absolute;
466-
inset: 2px;
466+
inset: 0;
467467
border-radius: var(--st-diff-hunk-radius);
468468
pointer-events: none;
469469
opacity: 0;

0 commit comments

Comments
 (0)