mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
More Space tweaks. (#5086)
* Centre align the title in the space filter cells. * Update SpaceRoomCell and SpaceHeaderView with consistent content.
This commit is contained in:
@@ -76,14 +76,15 @@ struct SpaceHeaderView: View {
|
||||
CompoundIcon(spaceDetailsVisibilityIcon, size: .small, relativeTo: .compound.bodyLG)
|
||||
.foregroundStyle(.compound.iconTertiary)
|
||||
}
|
||||
.labelStyle(.custom(spacing: 4))
|
||||
}
|
||||
|
||||
private var spaceDetailsVisibilityTitle: String {
|
||||
switch spaceServiceRoom.visibility {
|
||||
case .public: L10n.commonPublicSpace
|
||||
case .private: L10n.commonPrivateSpace
|
||||
case .restricted: L10n.commonSharedSpace
|
||||
case .none: L10n.commonPrivateSpace
|
||||
case .public: L10n.commonPublic
|
||||
case .private: L10n.commonPrivate
|
||||
case .restricted: L10n.commonSpaceMembers
|
||||
case .none: L10n.commonPrivate
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user