mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-28 20:26:57 +02:00
Location sharing cells: Use constants.
This commit is contained in:
+2
-6
@@ -21,12 +21,8 @@ class LocationIncomingBubbleCell: LocationBubbleCell, BubbleIncomingRoomCellProt
|
||||
override func setupViews() {
|
||||
super.setupViews()
|
||||
|
||||
// TODO: Use constants
|
||||
let messageViewMarginRight: CGFloat = 80
|
||||
let messageLeftMargin: CGFloat = 48
|
||||
|
||||
bubbleCellContentView?.innerContentViewTrailingConstraint.constant = messageViewMarginRight
|
||||
bubbleCellContentView?.innerContentViewLeadingConstraint.constant = messageLeftMargin
|
||||
bubbleCellContentView?.innerContentViewLeadingConstraint.constant = BubbleRoomCellLayoutConstants.incomingBubbleBackgroundMargins.left
|
||||
bubbleCellContentView?.innerContentViewTrailingConstraint.constant = BubbleRoomCellLayoutConstants.incomingBubbleBackgroundMargins.right
|
||||
|
||||
self.setupBubbleDecorations()
|
||||
}
|
||||
|
||||
+1
-2
@@ -23,9 +23,8 @@ class LocationOutgoingWithoutSenderInfoBubbleCell: LocationBubbleCell, BubbleOut
|
||||
|
||||
bubbleCellContentView?.showSenderInfo = false
|
||||
|
||||
bubbleCellContentView?.innerContentViewTrailingConstraint.constant = BubbleRoomCellLayoutConstants.outgoingBubbleBackgroundMargins.right
|
||||
|
||||
bubbleCellContentView?.innerContentViewLeadingConstraint.constant = BubbleRoomCellLayoutConstants.outgoingBubbleBackgroundMargins.left
|
||||
bubbleCellContentView?.innerContentViewTrailingConstraint.constant = BubbleRoomCellLayoutConstants.outgoingBubbleBackgroundMargins.right
|
||||
|
||||
self.setupBubbleDecorations()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user