单词卡片改为英文、音标、翻译从上到下排列,间距 8pt
This commit is contained in:
@@ -33,14 +33,9 @@ final class WordCardCell: UITableViewCell {
|
|||||||
meaningLabel.font = .preferredFont(forTextStyle: .subheadline)
|
meaningLabel.font = .preferredFont(forTextStyle: .subheadline)
|
||||||
meaningLabel.textColor = .secondaryLabel
|
meaningLabel.textColor = .secondaryLabel
|
||||||
|
|
||||||
let titleRow = UIStackView(arrangedSubviews: [wordLabel, phoneticLabel, UIView()])
|
let textStack = UIStackView(arrangedSubviews: [wordLabel, phoneticLabel, meaningLabel])
|
||||||
titleRow.axis = .horizontal
|
|
||||||
titleRow.alignment = .firstBaseline
|
|
||||||
titleRow.spacing = 6
|
|
||||||
|
|
||||||
let textStack = UIStackView(arrangedSubviews: [titleRow, meaningLabel])
|
|
||||||
textStack.axis = .vertical
|
textStack.axis = .vertical
|
||||||
textStack.spacing = 2
|
textStack.spacing = 8
|
||||||
|
|
||||||
speakerButton.tintColor = Theme.Color.accent
|
speakerButton.tintColor = Theme.Color.accent
|
||||||
speakerButton.addAction(UIAction { [weak self] _ in
|
speakerButton.addAction(UIAction { [weak self] _ in
|
||||||
|
|||||||
Reference in New Issue
Block a user