调整主页样式

This commit is contained in:
Fin 2021-05-26 12:42:01 +08:00
parent 4ba97d4cca
commit e5c0f7384f
No known key found for this signature in database
GPG Key ID: CFB59B99D87A7B93
2 changed files with 3 additions and 2 deletions

View File

@ -33,6 +33,7 @@ class HomeViewController: BaseViewController {
tableView.separatorStyle = .none tableView.separatorStyle = .none
tableView.backgroundColor = Color.grey.lighten3 tableView.backgroundColor = Color.grey.lighten3
tableView.register(PreviewCardCell.self, forCellReuseIdentifier: "\(PreviewCardCell.self)") tableView.register(PreviewCardCell.self, forCellReuseIdentifier: "\(PreviewCardCell.self)")
tableView.contentInset = UIEdgeInsets(top: 0, left: 0, bottom: 20, right: 0)
return tableView return tableView
}() }()

View File

@ -74,8 +74,8 @@ class PreviewCardCell: BaseTableViewCell {
card.addSubview(previewButton) card.addSubview(previewButton)
card.snp.makeConstraints { (make) in card.snp.makeConstraints { (make) in
make.left.top.equalToSuperview().offset(10) make.left.top.equalToSuperview().offset(16)
make.right.equalToSuperview().offset(-10) make.right.equalToSuperview().offset(-16)
make.bottom.equalToSuperview() make.bottom.equalToSuperview()
} }
previewButton.snp.makeConstraints { (make) in previewButton.snp.makeConstraints { (make) in