aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Tay <nick@windblume.net>2022-03-21 17:22:20 +1100
committerNicholas Tay <nick@windblume.net>2022-03-21 17:22:20 +1100
commit54600245b35b2591b5ca19e39c80b8d9d0ae5f9e (patch)
tree5acf243dc38c57a1c728f0d5ac4fd39070ebb5ef
parent3688fd1ba733664aa8e74f85787554c0d19d0bb1 (diff)
downloadforayios-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).
-rw-r--r--foray/ForayDetailViewController.swift1
-rw-r--r--foray/ForayNewTableViewCell.swift5
2 files changed, 4 insertions, 2 deletions
diff --git a/foray/ForayDetailViewController.swift b/foray/ForayDetailViewController.swift
index 1382d24..f87e4b0 100644
--- a/foray/ForayDetailViewController.swift
+++ b/foray/ForayDetailViewController.swift
@@ -82,6 +82,7 @@ class ForayDetailViewController: UIViewController, ForayCoordinated {
descLabel.snp.makeConstraints { (make) in
make.top.equalTo(itemImageView.snp.bottom).offset(32)
make.leading.trailing.equalToSuperview()
+ make.bottom.equalTo(container.snp.bottom).inset(16)
}
}
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()