mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-05-23 08:20:46 +08:00
Milestone events have date (#1237)
* milestone events have date * remove extra space
This commit is contained in:
@@ -65,6 +65,14 @@ final class IssueMilestoneEventModel: ListDiffable {
|
||||
.font: Styles.Fonts.secondaryBold
|
||||
]
|
||||
))
|
||||
attributedText.append(NSAttributedString(
|
||||
string: " \(date.agoString)",
|
||||
attributes: [
|
||||
.font: Styles.Fonts.secondary,
|
||||
.foregroundColor: Styles.Colors.Gray.medium.color,
|
||||
MarkdownAttribute.details: DateDetailsFormatter().string(from: date)
|
||||
]
|
||||
))
|
||||
self.attributedText = NSAttributedStringSizing(
|
||||
containerWidth: width,
|
||||
attributedText: attributedText,
|
||||
|
||||
Reference in New Issue
Block a user