Merge branch 'mkirk/misc-cleanup'

pull/1/head
Michael Kirk 7 years ago
commit b801979fa3

@ -342,8 +342,7 @@ class MediaGalleryViewController: OWSNavigationController, MediaGalleryDataSourc
detailView.backgroundColor = .clear detailView.backgroundColor = .clear
self.view.backgroundColor = .clear self.view.backgroundColor = .clear
// TODO: Sync with (possibly assymetrical) corner rounding in message bubbles. self.presentationView.layer.cornerRadius = kOWSMessageCellCornerRadius_Small
self.presentationView.layer.cornerRadius = kOWSMessageCellCornerRadius_Large
fromViewController.present(self, animated: false) { fromViewController.present(self, animated: false) {

@ -254,6 +254,9 @@ class MessageDetailViewController: OWSViewController, MediaGalleryDataSourceDele
// Table view cells don't layout properly outside the // Table view cells don't layout properly outside the
// context of a table view. // context of a table view.
let cellView = ContactCellView() let cellView = ContactCellView()
// canary in case we later add margins in the ContactCellView initializer.
assert(!cellView.isLayoutMarginsRelativeArrangement)
cellView.isLayoutMarginsRelativeArrangement = true
cellView.layoutMargins = UIEdgeInsets(top: 8, left: 20, bottom: 8, right: 20) cellView.layoutMargins = UIEdgeInsets(top: 8, left: 20, bottom: 8, right: 20)
// We use the "short" status message to avoid being redundant with the section title. // We use the "short" status message to avoid being redundant with the section title.
cellView.accessoryMessage = shortStatusMessage cellView.accessoryMessage = shortStatusMessage

Loading…
Cancel
Save