mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 08:03:50 +02:00
Include URL previews in addVerticalWhitespaceToString:forEvent: and remove heightForCellData:withMaximumWidth: from the various TextMsgBubbleCell subclasses.
Use the bubble cell data's available width when sizing URL previews and update the defaultAvailableWidth and reducedWidthThreshold accordingly.
This commit is contained in:
@@ -37,9 +37,9 @@ class URLPreviewView: UIView, NibLoadable, Themable {
|
||||
static let reducedWidth: CGFloat = 230
|
||||
|
||||
/// The availableWidth value that the XIB file is designed against.
|
||||
static let defaultAvailableWidth: CGFloat = 375
|
||||
static let defaultAvailableWidth: CGFloat = 340
|
||||
/// The threshold value for available width that triggers the view to use a reducedWidth
|
||||
static let reducedWidthThreshold: CGFloat = 320
|
||||
static let reducedWidthThreshold: CGFloat = 285
|
||||
}
|
||||
|
||||
// MARK: - Properties
|
||||
|
||||
Reference in New Issue
Block a user