Skip to content

Commit 99b2522

Browse files
committed
fix: align font size in unified diff with Obsidian
close #1008
1 parent 174cad8 commit 99b2522

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

styles.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
.git-signs-gutter {
1212
.cm-gutterElement {
13+
/* Needed to align the sign properly for different line heigts. Such as
14+
* when having a heading or list item.
15+
*/
1316
padding-top: 0 !important;
1417
}
1518
}
@@ -270,7 +273,7 @@ which itself is adapted from the diff2html library with the following original l
270273
.d2h-diff-table {
271274
border-collapse: collapse;
272275
font-family: var(--font-monospace);
273-
font-size: var(--font-text-size);
276+
font-size: var(--code-size);
274277
width: 100%;
275278
}
276279
.d2h-files-diff {
@@ -281,6 +284,8 @@ which itself is adapted from the diff2html library with the following original l
281284
overflow-y: scroll;
282285
*/
283286
border-radius: 5px;
287+
font-size: var(--font-text-size);
288+
line-height: var(--line-height-normal);
284289
}
285290
.d2h-file-side-diff {
286291
display: inline-block;

0 commit comments

Comments
 (0)