Commit eba8aea07b

eba8aea07b158b12fd62a713efe09a02d7481a3c

parent: c70b54ad62

Unsigned

cmc <hello@cleberg.net> · 2026-09-30 02:25 UTC

Repository page: More above the README (!141)

Moves the More section above the README so it is reachable on repos with long READMEs.

Ref #16

Layout: unified · split

gitbay/Views/Repos/RepoView.swift +12 −12
@@ -66,18 +66,6 @@ struct RepoView: View {
6666 .listRowInsets(EdgeInsets())
6767 }
6868
69 if let readme = model.readme {
70 Section("README") {
71 ReadmeView(
72 name: model.readmeName ?? "README.md",
73 content: readme,
74 host: host,
75 repoPath: path
76 )
77 .padding(.vertical, 4)
78 }
79 }
80
8169 Section {
8270 DisclosureGroup("More", isExpanded: $showingMore) {
8371 NavigationLink(value: RepoRoute.log(repo: path, ref: nil, path: nil)) {
@@ -104,6 +92,18 @@ struct RepoView: View {
10492 }
10593 .accessibilityIdentifier("repo-more")
10694 }
95
96 if let readme = model.readme {
97 Section("README") {
98 ReadmeView(
99 name: model.readmeName ?? "README.md",
100 content: readme,
101 host: host,
102 repoPath: path
103 )
104 .padding(.vertical, 4)
105 }
106 }
107107 }
108108 }
109109 .overlay { LoadStateOverlay(state: model.state) }
gitbayUITests/LiveSmokeUITests.swift +1 −1
@@ -447,7 +447,7 @@ final class LiveSmokeUITests: XCTestCase {
447447 app.descendants(matching: .any).matching(identifier: "repo-link-\(id)").firstMatch
448448 }
449449
450 /// A link in the repo screen's More section, below the README.
450 /// A link in the repo screen's More section, above the README.
451451 /// Expands the section when it is still collapsed.
452452 private func moreLink(_ title: String) -> XCUIElement {
453453 let link = app.staticTexts[title].firstMatch