diff options
| author | Dustin Mierau <dustin@mierau.me> | 2024-07-01 18:14:14 -0700 |
|---|---|---|
| committer | Dustin Mierau <dustin@mierau.me> | 2024-07-01 18:14:14 -0700 |
| commit | 7794a6522ae84bf1f1f543aae333e527d9dfe3a0 (patch) | |
| tree | d09d95898b1535886e67d7455fbe2ecebf63b636 /Hotline/macOS/NewsItemView.swift | |
| parent | 4682a3f6f48e9602f14c40856d8bb38029c468e1 (diff) | |
Some UI work for Accounts and a bug fix when deleting account that isn't yet persisted.
Diffstat (limited to 'Hotline/macOS/NewsItemView.swift')
| -rw-r--r-- | Hotline/macOS/NewsItemView.swift | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Hotline/macOS/NewsItemView.swift b/Hotline/macOS/NewsItemView.swift index 9614663..fc20e61 100644 --- a/Hotline/macOS/NewsItemView.swift +++ b/Hotline/macOS/NewsItemView.swift @@ -85,6 +85,12 @@ struct NewsItemView: View { .foregroundStyle(.secondary) .padding(.trailing, 8) } + else if news.type == .bundle && news.count > 0 { + Text("^[\(news.count) Category](inflect: true)") + .lineLimit(1) + .foregroundStyle(.secondary) + .padding(.trailing, 8) + } // if news.type == .bundle { // Text("\(news.count)") // .lineLimit(1) |