Commit 44445decd7

44445decd74ce7715e8f13071232771b5cb56522

parent: 99c913d081

Verified · cmc

cmc <hello@cleberg.net> · 2026-09-23 01:27 UTC

Keep build meta on one line; clear the keyboard off previews

The build row's meta line truncates the ref in the middle and never
breaks the short sha. Editors dismiss the keyboard on a downward drag,
and expanding a preview dismisses it.

Layout: unified · split

gitbay/Views/Builds/BuildListView.swift +3
@@ -81,9 +81,12 @@ private struct BuildRow: View {
8181 HStack(spacing: 6) {
8282 Text(build.job)
8383 Text(build.ref)
84 .truncationMode(.middle)
8485 Text(build.shortSHA)
8586 .font(.gbMono(.caption))
87 .fixedSize()
8688 }
89 .lineLimit(1)
8790 .font(.gbSans(.caption))
8891 .foregroundStyle(.secondary)
8992 }
gitbay/Views/Issues/IssueView.swift +1
@@ -41,6 +41,7 @@ struct IssueView: View {
4141 }
4242 }
4343 .overlay { LoadStateOverlay(state: model.state) }
44 .scrollDismissesKeyboard(.interactively)
4445 .navigationTitle("#\(model.number)")
4546 .navigationBarTitleDisplayMode(.inline)
4647 .toolbar { toolbar }
gitbay/Views/MRs/MRListView.swift +1
@@ -145,6 +145,7 @@ private struct MRCreateSheet: View {
145145 }
146146 }
147147 }
148 .scrollDismissesKeyboard(.interactively)
148149 .navigationTitle("New Merge Request")
149150 .navigationBarTitleDisplayMode(.inline)
150151 .toolbar {
gitbay/Views/MRs/MRView.swift +1
@@ -71,6 +71,7 @@ struct MRView: View {
7171 }
7272 }
7373 .overlay { LoadStateOverlay(state: model.state) }
74 .scrollDismissesKeyboard(.interactively)
7475 .navigationTitle("!\(model.number)")
7576 .navigationBarTitleDisplayMode(.inline)
7677 .toolbar { toolbar }
gitbay/Views/Releases/ReleaseListView.swift +1
@@ -118,6 +118,7 @@ private struct ReleaseCreateSheet: View {
118118 }
119119 }
120120 }
121 .scrollDismissesKeyboard(.interactively)
121122 .navigationTitle("New Release")
122123 .navigationBarTitleDisplayMode(.inline)
123124 .toolbar {
gitbay/Views/Repos/FileEditSheet.swift +1
@@ -44,6 +44,7 @@ struct FileEditSheet: View {
4444 }
4545 }
4646 }
47 .scrollDismissesKeyboard(.interactively)
4748 .navigationTitle("Edit")
4849 .navigationBarTitleDisplayMode(.inline)
4950 .toolbar {
gitbay/Views/Shared/ComposeSheet.swift +1
@@ -81,6 +81,7 @@ struct ComposeSheet: View {
8181 }
8282 }
8383 }
84 .scrollDismissesKeyboard(.interactively)
8485 .navigationTitle(heading)
8586 .navigationBarTitleDisplayMode(.inline)
8687 .toolbar {
gitbay/Views/Shared/MarkupPreview.swift +7
@@ -27,6 +27,13 @@ struct MarkupPreview: View {
2727 .font(.gbSans(.subheadline))
2828 }
2929 .accessibilityIdentifier(identifier)
30 // The keyboard would cover the rendered text.
31 .onChange(of: expanded) { _, isExpanded in
32 if isExpanded {
33 UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder),
34 to: nil, from: nil, for: nil)
35 }
36 }
3037 }
3138
3239 /// The format a file's contents render in, or nil for a file shown as