diff options
author | Nicholas Tay <nick@windblume.net> | 2022-03-21 17:22:20 +1100 |
---|---|---|
committer | Nicholas Tay <nick@windblume.net> | 2022-03-21 17:22:20 +1100 |
commit | 54600245b35b2591b5ca19e39c80b8d9d0ae5f9e (patch) | |
tree | 5acf243dc38c57a1c728f0d5ac4fd39070ebb5ef /foray/ForayNewTableViewCell.swift | |
parent | 3688fd1ba733664aa8e74f85787554c0d19d0bb1 (diff) | |
download | forayios-54600245b35b2591b5ca19e39c80b8d9d0ae5f9e.tar.gz forayios-54600245b35b2591b5ca19e39c80b8d9d0ae5f9e.tar.bz2 forayios-54600245b35b2591b5ca19e39c80b8d9d0ae5f9e.zip |
Fix scroll in details view
Didn't constrain details label to the bottom of the content container,
so scroll view didn't pick up on it (test with large font on a smaller
viewport phone).
Diffstat (limited to '')
-rw-r--r-- | foray/ForayNewTableViewCell.swift | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/foray/ForayNewTableViewCell.swift b/foray/ForayNewTableViewCell.swift index 26619cc..224709a 100644 --- a/foray/ForayNewTableViewCell.swift +++ b/foray/ForayNewTableViewCell.swift @@ -15,6 +15,7 @@ class ForayNewTableViewCell: UITableViewCell { let nameLabel: UILabel = { let l = UILabel() l.font = UIFont.preferredFont(forTextStyle: .headline) + l.numberOfLines = 3 l.adjustsFontForContentSizeCategory = true return l }() @@ -54,8 +55,8 @@ class ForayNewTableViewCell: UITableViewCell { make.edges.equalTo(contentView.snp.margins) } - let imageWidth = 68 - let imageHeight = 44 + let imageWidth = 64 + let imageHeight = 38 nameLabel.snp.makeConstraints { (make) in make.top.equalToSuperview() make.leading.equalToSuperview() |