File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ enum Theme {
34
34
// Space between avatar and content
35
35
static let messageHorizontalStackSpacing : CGFloat = 8
36
36
static let messageVerticalStackSpacing : CGFloat = 2.0
37
- static let messageNameLabelHeight : CGFloat = 16
37
+ static let messageNameLabelHeight : CGFloat = 14
38
38
static let messageTextFont : NSFont = . systemFont( ofSize: NSFont . systemFontSize)
39
39
static let messageTextLineFragmentPadding : CGFloat = 0
40
40
static let messageTextContainerInset : NSSize = . zero
Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ class MessageViewAppKit: NSView {
258
258
let avatarLeading = Theme . messageSidePadding
259
259
let contentLeading = avatarLeading + Self. avatarSize + Theme. messageHorizontalStackSpacing - bgPadding
260
260
let sidePadding = Theme . messageSidePadding - bgPadding
261
- let senderNameLeadingPadding = hasBubble ? 4 .0 : 0.0
261
+ let senderNameLeadingPadding = hasBubble ? 6 .0 : 0.0
262
262
263
263
if props. firstInGroup {
264
264
topPadding += Theme . messageGroupSpacing
@@ -277,7 +277,9 @@ class MessageViewAppKit: NSView {
277
277
NSLayoutConstraint . activate ( [
278
278
nameLabel. leadingAnchor. constraint ( equalTo: leadingAnchor, constant: contentLeading + senderNameLeadingPadding) ,
279
279
nameLabel. topAnchor. constraint ( equalTo: topAnchor, constant: topPadding) ,
280
- nameLabel. trailingAnchor. constraint ( lessThanOrEqualTo: trailingAnchor, constant: - sidePadding)
280
+ nameLabel. trailingAnchor. constraint ( lessThanOrEqualTo: trailingAnchor, constant: - sidePadding) ,
281
+ nameLabel. heightAnchor
282
+ . constraint ( equalToConstant: Theme . messageNameLabelHeight) ,
281
283
] )
282
284
}
283
285
You can’t perform that action at this time.
0 commit comments