Skip to content

Commit dbfc151

Browse files
committed
[macOS] Increase min reply width
1 parent dabca5f commit dbfc151

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

apple/InlineMac/Views/Chat/EmbeddedMessage/EmbeddedMessageView.swift

+5-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class EmbeddedMessageView: NSView {
4141
let view = NSView()
4242
view.translatesAutoresizingMaskIntoConstraints = false
4343
view.wantsLayer = true
44-
view.layer?.backgroundColor = NSColor.systemGray.cgColor // use sender color
44+
view.layer?.backgroundColor = NSColor.controlAccentColor.cgColor // use sender color
4545
return view
4646
}()
4747

@@ -85,13 +85,15 @@ class EmbeddedMessageView: NSView {
8585
addSubview(rectangleView)
8686
addSubview(nameLabel)
8787
addSubview(messageLabel)
88+
89+
8890

8991
NSLayoutConstraint.activate([
9092
// Rectangle view
9193
rectangleView.leadingAnchor.constraint(equalTo: leadingAnchor),
9294
rectangleView.widthAnchor.constraint(equalToConstant: Constants.rectangleWidth),
93-
rectangleView.topAnchor.constraint(equalTo: topAnchor),
94-
rectangleView.bottomAnchor.constraint(equalTo: bottomAnchor),
95+
rectangleView.topAnchor.constraint(equalTo: topAnchor, constant: Constants.verticalPadding),
96+
rectangleView.bottomAnchor.constraint(equalTo: bottomAnchor, constant: -Constants.verticalPadding),
9597

9698
// Name label
9799
nameLabel.leadingAnchor.constraint(

apple/InlineMac/Views/Chat/Message/MessageViewAppKit.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class MessageViewAppKit: NSView {
5151
if let photoWidth = props.photoWidth {
5252
photoWidth
5353
} else if hasReply {
54-
max(textWidth, 120.0) // some width for the reply
54+
max(textWidth, 220.0) // some width for the reply
5555
} else {
5656
textWidth
5757
}

0 commit comments

Comments
 (0)