Skip to content

Commit d578f0a

Browse files
committed
improve line-height on diffs
1 parent 0db4c88 commit d578f0a

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/UnisonShare/DefinitionDiff.elm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,13 @@ viewDiffLine viewSeg changeIndicator gutterWidth ( ln, line ) =
157157
ChangedLine segments ->
158158
div [ class "diff-line changed-line" ]
159159
[ gutter changeIndicator
160-
, span [] (List.concatMap viewSeg segments)
160+
, span [ class "diff-line_syntax" ] (List.concatMap viewSeg segments)
161161
]
162162

163163
UnchangedLine segments ->
164164
div [ class "diff-line unchanged-line" ]
165165
[ gutter " "
166-
, span [] (List.concatMap viewSeg segments)
166+
, span [ class "diff-line_syntax" ] (List.concatMap viewSeg segments)
167167
]
168168

169169
Spacer { numLines } ->

src/css/unison-share/page/project-contribution-changes-page.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,13 @@
238238
gap: 0.5rem;
239239
}
240240

241+
& .definition-change.card .diff-line_syntax {
242+
height: var(--diff-line-height);
243+
line-height: 1;
244+
display: flex;
245+
align-items: center;
246+
}
247+
241248
& .definition-change.card .diff-segment {
242249
display: inline-flex;
243250
height: var(--diff-line-height);

0 commit comments

Comments
 (0)