From 2184081bc5d2014e3a9d5b02d81892a06b730ae5 Mon Sep 17 00:00:00 2001 From: Doug <6060466+pixlwave@users.noreply.github.com> Date: Thu, 26 Sep 2024 18:07:50 +0100 Subject: [PATCH] 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. --- ElementX/Sources/Screens/RoomScreen/View/RoomHeaderView.swift | 4 ++-- codecov.yml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ElementX/Sources/Screens/RoomScreen/View/RoomHeaderView.swift b/ElementX/Sources/Screens/RoomScreen/View/RoomHeaderView.swift index e138e2fac..68dc0a08c 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/RoomHeaderView.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/RoomHeaderView.swift @@ -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 { diff --git a/codecov.yml b/codecov.yml index 7af5676de..a13d2ab90 100644 --- a/codecov.yml +++ b/codecov.yml @@ -14,6 +14,7 @@ ignore: - "ElementX/Sources/Vendor" - "ElementX/Sources/UITests" - "ElementX/Sources/UnitTests" + - "ElementX/Sources/Settings/DeveloperOptionsScreen" - "Tools" - "**/Mock*.swift" - "**/*Mock.swift"