Skip to content

Commit 687a754

Browse files
committed
tweak height logic
1 parent f439a7d commit 687a754

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1118,7 +1118,7 @@ class HunkAccessibleDiffViewer extends AccessibleDiffViewer {
11181118
const width = observableValue('width', 0);
11191119
const diff = observableValue('diff', HunkAccessibleDiffViewer._asMapping(hunk));
11201120
const diffs = derived(r => [diff.read(r)]);
1121-
const lines = Math.min(6, 3 * diff.get().changedLineCount);
1121+
const lines = Math.min(10, 8 + diff.get().changedLineCount);
11221122
const height = models.getModifiedOptions().get(EditorOption.lineHeight) * lines;
11231123

11241124
super(parentNode, constObservable(true), () => { }, constObservable(false), width, constObservable(height), diffs, models, instantiationService);

0 commit comments

Comments
 (0)