mirror of
https://github.com/Finb/Bark.git
synced 2025-12-08 21:36:01 +00:00
调整主页样式
This commit is contained in:
parent
4ba97d4cca
commit
e5c0f7384f
@ -33,6 +33,7 @@ class HomeViewController: BaseViewController {
|
||||
tableView.separatorStyle = .none
|
||||
tableView.backgroundColor = Color.grey.lighten3
|
||||
tableView.register(PreviewCardCell.self, forCellReuseIdentifier: "\(PreviewCardCell.self)")
|
||||
tableView.contentInset = UIEdgeInsets(top: 0, left: 0, bottom: 20, right: 0)
|
||||
return tableView
|
||||
}()
|
||||
|
||||
|
||||
@ -74,8 +74,8 @@ class PreviewCardCell: BaseTableViewCell {
|
||||
card.addSubview(previewButton)
|
||||
|
||||
card.snp.makeConstraints { (make) in
|
||||
make.left.top.equalToSuperview().offset(10)
|
||||
make.right.equalToSuperview().offset(-10)
|
||||
make.left.top.equalToSuperview().offset(16)
|
||||
make.right.equalToSuperview().offset(-16)
|
||||
make.bottom.equalToSuperview()
|
||||
}
|
||||
previewButton.snp.makeConstraints { (make) in
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user