mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-29 07:42:40 +00:00
BubbleRoomCellLayoutConstants: Update constants and add new ones.
This commit is contained in:
parent
3943b17d57
commit
ddc632f844
1 changed files with 18 additions and 1 deletions
|
@ -21,9 +21,26 @@ import Foundation
|
||||||
@objcMembers
|
@objcMembers
|
||||||
final class BubbleRoomCellLayoutConstants: NSObject {
|
final class BubbleRoomCellLayoutConstants: NSObject {
|
||||||
|
|
||||||
|
/// Inner content view margins
|
||||||
|
static let innerContentViewMargins: UIEdgeInsets = UIEdgeInsets(top: 0, left: 0, bottom: 5.0, right: 0)
|
||||||
|
|
||||||
|
// Text message bubbles margins from cell content view
|
||||||
|
|
||||||
static let outgoingBubbleBackgroundMargins: UIEdgeInsets = UIEdgeInsets(top: 0, left: 80, bottom: 0, right: 34)
|
static let outgoingBubbleBackgroundMargins: UIEdgeInsets = UIEdgeInsets(top: 0, left: 80, bottom: 0, right: 34)
|
||||||
|
|
||||||
static let incomingBubbleBackgroundMargins: UIEdgeInsets = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 80)
|
static let incomingBubbleBackgroundMargins: UIEdgeInsets = UIEdgeInsets(top: 0, left: 48, bottom: 0, right: 80)
|
||||||
|
|
||||||
|
static let bubbleTextViewInsets: UIEdgeInsets = UIEdgeInsets(top: 5, left: 5, bottom: 5, right: 45)
|
||||||
|
|
||||||
|
// Voice message
|
||||||
|
|
||||||
|
static let voiceMessagePlaybackViewRightMargin: CGFloat = 40
|
||||||
|
|
||||||
|
// Polls
|
||||||
|
|
||||||
|
static let pollBubbleBackgroundInsets: UIEdgeInsets = UIEdgeInsets(top: 2, left: 10, bottom: 0, right: 10)
|
||||||
|
|
||||||
|
// Decoration margins
|
||||||
|
|
||||||
static let threadSummaryViewMargins: UIEdgeInsets = UIEdgeInsets(top: 0, left: 0, bottom: 5, right: 0)
|
static let threadSummaryViewMargins: UIEdgeInsets = UIEdgeInsets(top: 0, left: 0, bottom: 5, right: 0)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue