Skip to content

Commit

Permalink
Make sure the room header takes up as much space as possible (to hide…
Browse files Browse the repository at this point in the history
… the back button). (#3335)

* Make sure the room header takes up as much space as possible (to hide the back button).

* Ignore coverage on the developer options screen.
  • Loading branch information
pixlwave authored Sep 26, 2024
1 parent 4d7d687 commit 2184081
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ElementX/Sources/Screens/RoomScreen/View/RoomHeaderView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ struct RoomHeaderView: View {
.font(.compound.bodyLGSemibold)
.accessibilityIdentifier(A11yIdentifiers.roomScreen.name)
}
// Leading align whilst using the principal toolbar position.
.frame(maxWidth: .infinity, alignment: .leading)
// Take up as much space as possible, with a leading alignment for use in the principal toolbar position.
.frame(idealWidth: .greatestFiniteMagnitude, maxWidth: .infinity, alignment: .leading)
}

private var avatarImage: some View {
Expand Down
1 change: 1 addition & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ ignore:
- "ElementX/Sources/Vendor"
- "ElementX/Sources/UITests"
- "ElementX/Sources/UnitTests"
- "ElementX/Sources/Settings/DeveloperOptionsScreen"
- "Tools"
- "**/Mock*.swift"
- "**/*Mock.swift"
Expand Down

0 comments on commit 2184081

Please sign in to comment.