单词详情页移除颜色圆点

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-07-19 21:37:40 +08:00
parent 13ca0bcda9
commit f99d34a111
@@ -87,19 +87,6 @@ final class WordDetailViewController: UIViewController {
wordLabel.font = Theme.Font.wordHero() wordLabel.font = Theme.Font.wordHero()
wordLabel.textAlignment = .center wordLabel.textAlignment = .center
let colorDot = ColorDotView()
colorDot.backgroundColor = word.color
colorDot.isHidden = word.color == nil
colorDot.translatesAutoresizingMaskIntoConstraints = false
NSLayoutConstraint.activate([
colorDot.widthAnchor.constraint(equalToConstant: 20),
colorDot.heightAnchor.constraint(equalToConstant: 20)
])
let wordRow = UIStackView(arrangedSubviews: [colorDot, wordLabel])
wordRow.axis = .horizontal
wordRow.alignment = .center
wordRow.spacing = 12
let phoneticIcon = UIImageView(image: UIImage( let phoneticIcon = UIImageView(image: UIImage(
systemName: "speaker.wave.2", systemName: "speaker.wave.2",
withConfiguration: UIImage.SymbolConfiguration(pointSize: 13, weight: .medium))) withConfiguration: UIImage.SymbolConfiguration(pointSize: 13, weight: .medium)))
@@ -128,7 +115,7 @@ final class WordDetailViewController: UIViewController {
speakButton.heightAnchor.constraint(equalToConstant: 56) speakButton.heightAnchor.constraint(equalToConstant: 56)
]) ])
let stack = UIStackView(arrangedSubviews: [wordRow, phoneticRow, speakButton]) let stack = UIStackView(arrangedSubviews: [wordLabel, phoneticRow, speakButton])
stack.axis = .vertical stack.axis = .vertical
stack.spacing = 16 stack.spacing = 16
stack.alignment = .center stack.alignment = .center