Skip to content

Commit 380647c

Browse files
authored
SCM decorations are single pixel wide and sometimes not visible at all (microsoft#158786)
Fixes microsoft#158276
1 parent 9b507bc commit 380647c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -873,9 +873,9 @@ export class CommentController implements IEditorContribution {
873873

874874
const options = this.editor.getOptions();
875875
if (options.get(EditorOption.folding) && options.get(EditorOption.showFoldingControls) !== 'never') {
876-
lineDecorationsWidth -= 16;
876+
lineDecorationsWidth -= 27;
877877
}
878-
lineDecorationsWidth += 15;
878+
lineDecorationsWidth += 24;
879879
extraEditorClassName.push('inline-comment');
880880
this.editor.updateOptions({
881881
extraEditorClassName: extraEditorClassName.join(' '),

src/vs/workbench/contrib/comments/browser/media/review.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,9 +444,9 @@ div.preview.inline .monaco-editor .comment-range-glyph {
444444

445445
.monaco-editor.inline-comment .margin-view-overlays .codicon-folding-expanded,
446446
.monaco-editor.inline-comment .margin-view-overlays .codicon-folding-collapsed {
447-
margin-left: 14px;
447+
margin-left: 11px;
448448
}
449449

450450
.monaco-editor.inline-comment .margin-view-overlays .dirty-diff-glyph {
451-
margin-left: 24px;
451+
margin-left: 25px;
452452
}

0 commit comments

Comments
 (0)