From 8ee916411e1b3f1a7d530d85eb48065541129f7a Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Fri, 20 Jan 2023 13:58:40 -0500 Subject: [PATCH] Further card tweaks --- Tusker/Views/Status/StatusCardView.swift | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Tusker/Views/Status/StatusCardView.swift b/Tusker/Views/Status/StatusCardView.swift index 6868f3fd..a4c89106 100644 --- a/Tusker/Views/Status/StatusCardView.swift +++ b/Tusker/Views/Status/StatusCardView.swift @@ -43,9 +43,6 @@ class StatusCardView: UIView { } private func commonInit() { -// self.clipsToBounds = true -// self.layer.borderWidth = 0.5 -// self.layer.borderColor = UIColor.lightGray.cgColor self.layer.shadowColor = UIColor.black.cgColor self.layer.shadowRadius = 5 self.layer.shadowOpacity = 0.2 @@ -57,11 +54,12 @@ class StatusCardView: UIView { titleLabel.font = UIFont(descriptor: UIFontDescriptor.preferredFontDescriptor(withTextStyle: .subheadline).withSymbolicTraits(.traitBold)!, size: 0) titleLabel.adjustsFontForContentSizeCategory = true titleLabel.numberOfLines = 2 + titleLabel.setContentHuggingPriority(.defaultHigh, for: .vertical) descriptionLabel = UILabel() descriptionLabel.font = UIFont(descriptor: .preferredFontDescriptor(withTextStyle: .caption1), size: 0) descriptionLabel.adjustsFontForContentSizeCategory = true - descriptionLabel.numberOfLines = 2 + descriptionLabel.numberOfLines = 3 descriptionLabel.setContentCompressionResistancePriority(.defaultLow, for: .vertical) domainLabel = UILabel()