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/NewsView.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/NewsView.swift')
| -rw-r--r-- | Hotline/macOS/NewsView.swift | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/Hotline/macOS/NewsView.swift b/Hotline/macOS/NewsView.swift index e4f4d21..45cb057 100644 --- a/Hotline/macOS/NewsView.swift +++ b/Hotline/macOS/NewsView.swift @@ -37,16 +37,14 @@ struct NewsView: View { loadingIndicator } else if model.news.isEmpty { - VStack { + ZStack(alignment: .center) { Text("No News") - .bold() + .font(.title) + .multilineTextAlignment(.center) .foregroundStyle(.secondary) - .font(.title3) - Text("This server has no news available.") - .foregroundStyle(.tertiary) - .font(.system(size: 13)) + .padding() } - .padding() + .frame(maxWidth: .infinity) } else { newsBrowser |