Skip to content

Commit 775512b

Browse files
authored
Fix diff viewer related changes (#114)
1 parent cd79f2a commit 775512b

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/components/ChangedFilesList.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,7 @@ export function ChangedFilesList(props: ChangedFilesListProps) {
489489
'font-family': "'JetBrains Mono', monospace",
490490
'font-size': sf(12),
491491
outline: 'none',
492+
'user-select': 'none',
492493
}}
493494
>
494495
<div style={{ flex: '1', overflow: 'auto', padding: '4px 0' }}>

src/components/DiffViewerDialog.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ function DiffViewerContent(props: DiffViewerDialogProps) {
261261
padding: `${headerPaddingTop} 20px 12px`,
262262
'border-bottom': `1px solid ${theme.border}`,
263263
'flex-shrink': '0',
264+
'user-select': 'none',
264265
}}
265266
>
266267
<div
@@ -426,6 +427,7 @@ function DiffViewerContent(props: DiffViewerDialogProps) {
426427
display: 'flex',
427428
'align-items': 'center',
428429
gap: '6px',
430+
'user-select': 'none',
429431
}}
430432
>
431433
Changed Files

src/components/ScrollingDiffView.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,7 @@ function FileSection(props: {
575575
background: `color-mix(in srgb, ${theme.bgElevated} 96%, white)`,
576576
'border-bottom': `1px solid ${theme.border}`,
577577
cursor: 'pointer',
578+
'user-select': 'none',
578579
}}
579580
>
580581
{/* Collapse indicator */}

0 commit comments

Comments
 (0)