Make sure the room header takes up as much space as possible (to hide 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.
This commit is contained in:
Doug 2024-09-26 18:07:50 +01:00 committed by GitHub
parent 4d7d687954
commit 2184081bc5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -24,8 +24,8 @@ struct RoomHeaderView: View {
.font(.compound.bodyLGSemibold) .font(.compound.bodyLGSemibold)
.accessibilityIdentifier(A11yIdentifiers.roomScreen.name) .accessibilityIdentifier(A11yIdentifiers.roomScreen.name)
} }
// Leading align whilst using the principal toolbar position. // Take up as much space as possible, with a leading alignment for use in the principal toolbar position.
.frame(maxWidth: .infinity, alignment: .leading) .frame(idealWidth: .greatestFiniteMagnitude, maxWidth: .infinity, alignment: .leading)
} }
private var avatarImage: some View { private var avatarImage: some View {

View File

@ -14,6 +14,7 @@ ignore:
- "ElementX/Sources/Vendor" - "ElementX/Sources/Vendor"
- "ElementX/Sources/UITests" - "ElementX/Sources/UITests"
- "ElementX/Sources/UnitTests" - "ElementX/Sources/UnitTests"
- "ElementX/Sources/Settings/DeveloperOptionsScreen"
- "Tools" - "Tools"
- "**/Mock*.swift" - "**/Mock*.swift"
- "**/*Mock.swift" - "**/*Mock.swift"