Skip to content

Commit e94ecb0

Browse files
committed
Fixes #4573 fixes composer diffs with large editor font sizes
1 parent 13b6758 commit e94ecb0

File tree

1 file changed

+4
-2
lines changed
  • src/webviews/apps/plus/composer/components/diff

1 file changed

+4
-2
lines changed

src/webviews/apps/plus/composer/components/diff/diff.css.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,11 @@ export const hljsStyles = css`
9898

9999
export const diff2htmlStyles = css`
100100
:host {
101-
--d2h-intrinsic-base-height: 3.5rem;
101+
--d2h-intrinsic-base-height: 3.5rem; /* header height */
102102
--d2h-intrinsic-line-count: 50;
103-
--d2h-intrinsic-line-height: 1.8rem;
103+
--d2h-intrinsic-line-height: calc(
104+
var(--editor-font-size) * 1.5
105+
); /* 1.8rem - line height, should be relative to font size, but still a fixed height */
104106
--d2h-intrinsic-height: calc(
105107
var(--d2h-intrinsic-base-height) + (var(--d2h-intrinsic-line-height) * var(--d2h-intrinsic-line-count))
106108
);

0 commit comments

Comments
 (0)