mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-29 07:42:40 +00:00
VoiceMessage bubble cells: Add extra space for timestamp.
This commit is contained in:
parent
198b91ec70
commit
0e02397a70
2 changed files with 7 additions and 2 deletions
|
@ -24,9 +24,12 @@ class VoiceMessageIncomingBubbleCell: VoiceMessageBubbleCell {
|
|||
// TODO: Use constants
|
||||
let messageViewMarginRight: CGFloat = 80
|
||||
let messageLeftMargin: CGFloat = 48
|
||||
let playbackViewRightMargin: CGFloat = 40
|
||||
|
||||
bubbleCellContentView?.innerContentViewTrailingConstraint.constant = messageViewMarginRight
|
||||
bubbleCellContentView?.innerContentViewLeadingConstraint.constant = messageLeftMargin
|
||||
bubbleCellContentView?.innerContentViewLeadingConstraint.constant = messageLeftMargin
|
||||
|
||||
playbackController.playbackView.stackViewTrailingContraint.constant = playbackViewRightMargin
|
||||
}
|
||||
|
||||
override func update(theme: Theme) {
|
||||
|
|
|
@ -27,10 +27,12 @@ class VoiceMessageOutgoingWithoutSenderInfoBubbleCell: VoiceMessageBubbleCell {
|
|||
// Same as outgoing message
|
||||
let rightMargin: CGFloat = 34.0
|
||||
let leftMargin: CGFloat = 80.0
|
||||
|
||||
let playbackViewRightMargin: CGFloat = 40
|
||||
|
||||
bubbleCellContentView?.innerContentViewTrailingConstraint.constant = rightMargin
|
||||
bubbleCellContentView?.innerContentViewLeadingConstraint.constant = leftMargin
|
||||
|
||||
playbackController.playbackView.stackViewTrailingContraint.constant = playbackViewRightMargin
|
||||
}
|
||||
|
||||
override func update(theme: Theme) {
|
||||
|
|
Loading…
Reference in a new issue