From 945e34baa683fc18154ef87b9345620ceba56bf2 Mon Sep 17 00:00:00 2001 From: Doug <6060466+pixlwave@users.noreply.github.com> Date: Fri, 17 Apr 2026 10:57:18 +0100 Subject: [PATCH] Tweak the font/icon sizes on the Space visibility label. (#5396) --- ElementX/Sources/Screens/Spaces/Common/SpaceHeaderView.swift | 4 ++-- .../PreviewTests/spaceHeaderView.iPad-en-GB-0.png | 4 ++-- .../PreviewTests/spaceHeaderView.iPad-pseudo-0.png | 4 ++-- .../PreviewTests/spaceHeaderView.iPhone-en-GB-0.png | 4 ++-- .../PreviewTests/spaceHeaderView.iPhone-pseudo-0.png | 4 ++-- .../PreviewTests/spaceScreen.New-Space-iPad-en-GB.png | 4 ++-- .../PreviewTests/spaceScreen.New-Space-iPad-pseudo.png | 4 ++-- .../PreviewTests/spaceScreen.New-Space-iPhone-en-GB.png | 4 ++-- .../PreviewTests/spaceScreen.New-Space-iPhone-pseudo.png | 4 ++-- .../__Snapshots__/PreviewTests/spaceScreen.iPad-en-GB-0.png | 4 ++-- .../__Snapshots__/PreviewTests/spaceScreen.iPad-pseudo-0.png | 4 ++-- .../__Snapshots__/PreviewTests/spaceScreen.iPhone-en-GB-0.png | 4 ++-- .../PreviewTests/spaceScreen.iPhone-pseudo-0.png | 4 ++-- 13 files changed, 26 insertions(+), 26 deletions(-) diff --git a/ElementX/Sources/Screens/Spaces/Common/SpaceHeaderView.swift b/ElementX/Sources/Screens/Spaces/Common/SpaceHeaderView.swift index 05c63af3b..cfdf50b3a 100644 --- a/ElementX/Sources/Screens/Spaces/Common/SpaceHeaderView.swift +++ b/ElementX/Sources/Screens/Spaces/Common/SpaceHeaderView.swift @@ -69,11 +69,11 @@ struct SpaceHeaderView: View { private var spaceDetails: some View { Label { Text(spaceDetailsVisibilityTitle) - .font(.compound.bodyLG) + .font(.compound.bodyMD) .foregroundStyle(.compound.textSecondary) .multilineTextAlignment(.center) } icon: { - CompoundIcon(spaceDetailsVisibilityIcon, size: .small, relativeTo: .compound.bodyLG) + CompoundIcon(spaceDetailsVisibilityIcon, size: .xSmall, relativeTo: .compound.bodyMD) .foregroundStyle(.compound.iconTertiary) } .labelStyle(.custom(spacing: 4)) diff --git a/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceHeaderView.iPad-en-GB-0.png b/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceHeaderView.iPad-en-GB-0.png index bfc174e30..3d5055ace 100644 --- a/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceHeaderView.iPad-en-GB-0.png +++ b/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceHeaderView.iPad-en-GB-0.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:465f845afef8fd15f7b5c43d841339bfd361257e43f5ef5efda6c3b9b3b03db8 -size 215985 +oid sha256:ce04e4f79ed0632c9dbdfc891963ebd08aa5447eb782f86873168979a55817e0 +size 214907 diff --git a/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceHeaderView.iPad-pseudo-0.png b/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceHeaderView.iPad-pseudo-0.png index 9a2620313..9040f5178 100644 --- a/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceHeaderView.iPad-pseudo-0.png +++ b/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceHeaderView.iPad-pseudo-0.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:96b545a38f12b9609dcbf12b955ad89bc8173669d4c1daac66079934ba9bf112 -size 219182 +oid sha256:7f409fd1ed78274d4ccff90aedfb321bdf0abfcfe274d5b3aa10101fc5c7714f +size 220182 diff --git a/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceHeaderView.iPhone-en-GB-0.png b/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceHeaderView.iPhone-en-GB-0.png index 21fe381e0..d0c08f4b7 100644 --- a/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceHeaderView.iPhone-en-GB-0.png +++ b/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceHeaderView.iPhone-en-GB-0.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a1d01b7ccfdd2c723ea7b75e5666154fec8c57378be1ba82404d7ed6aea3c7c0 -size 144329 +oid sha256:c94f0e194879ac6d8358e72694c9e144207c4c7f319008909102847665d1aa0f +size 143177 diff --git a/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceHeaderView.iPhone-pseudo-0.png b/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceHeaderView.iPhone-pseudo-0.png index 83ac9fb0d..be9cc8ec2 100644 --- a/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceHeaderView.iPhone-pseudo-0.png +++ b/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceHeaderView.iPhone-pseudo-0.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:5178cc1726bc405b988563941aaf3bfaac5b0d11c0416ae8eefc5843dade37f7 -size 149889 +oid sha256:e3787bf835ebccd301323a4cb09f49cf536b37b7d765cdff43c3a5cfb1777c2c +size 147711 diff --git a/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceScreen.New-Space-iPad-en-GB.png b/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceScreen.New-Space-iPad-en-GB.png index df5d43225..095016050 100644 --- a/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceScreen.New-Space-iPad-en-GB.png +++ b/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceScreen.New-Space-iPad-en-GB.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3327163bbec99069f7c9cc256f92b1b064394e9c309a675c442b291b070f9c53 -size 140376 +oid sha256:931ec1a34e152ff1236a8ff17881a16129eda7ec649ce4ccfed48b795ae62b8d +size 139917 diff --git a/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceScreen.New-Space-iPad-pseudo.png b/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceScreen.New-Space-iPad-pseudo.png index 4b54bbde9..f775c6706 100644 --- a/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceScreen.New-Space-iPad-pseudo.png +++ b/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceScreen.New-Space-iPad-pseudo.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:2203fdd09205ecd1d00f961de9a73abbc853f03167cb705e90bb25483ce102ac -size 149436 +oid sha256:bf8c1653131f46e4b50e7b36df0de27d4c171ea613112933a0bb2f21cfbc10b5 +size 148157 diff --git a/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceScreen.New-Space-iPhone-en-GB.png b/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceScreen.New-Space-iPhone-en-GB.png index 46543a35e..756dcb40c 100644 --- a/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceScreen.New-Space-iPhone-en-GB.png +++ b/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceScreen.New-Space-iPhone-en-GB.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:806309151b9aa7eafcb3f6019e82734f1b2b842a9ae1a505bc98c96536f69d90 -size 93276 +oid sha256:2e717d255c26b84f4d0ea51ca8513827414dedc739f1858bc24c9073935bc92f +size 92955 diff --git a/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceScreen.New-Space-iPhone-pseudo.png b/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceScreen.New-Space-iPhone-pseudo.png index 1d8643358..1c5493bb0 100644 --- a/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceScreen.New-Space-iPhone-pseudo.png +++ b/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceScreen.New-Space-iPhone-pseudo.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a8e0852bb093e1af53ff6a0d6a0f05d7c412bc6df2e64ce8a1d24ce9e2dae9f4 -size 106840 +oid sha256:0d194d9f99c91d5d08ef443ac069a1d8ab2488140e13a2d863d934ac4e18d318 +size 105714 diff --git a/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceScreen.iPad-en-GB-0.png b/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceScreen.iPad-en-GB-0.png index abbeea1f7..28d12ff61 100644 --- a/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceScreen.iPad-en-GB-0.png +++ b/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceScreen.iPad-en-GB-0.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:197c93adf7fd660cd56b5d60b250fc2d15711122a5fc405154f977c5b407729a -size 236560 +oid sha256:2d7821969cf5dfd77adf4cd4a1a549b4b5032bbc8dfb488c61fd0bde00bb0e43 +size 236289 diff --git a/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceScreen.iPad-pseudo-0.png b/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceScreen.iPad-pseudo-0.png index 56cb51ebb..15214848b 100644 --- a/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceScreen.iPad-pseudo-0.png +++ b/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceScreen.iPad-pseudo-0.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e43be60a719129f4d94e637f190049460975e97b73c6de50bd3d3edcd0bd9485 -size 268036 +oid sha256:26ff35a9b2a67d5b54182168f9e293f85ba0a28e75a096f0d49248c0673a9f98 +size 267027 diff --git a/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceScreen.iPhone-en-GB-0.png b/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceScreen.iPhone-en-GB-0.png index e539e691d..f3c27f692 100644 --- a/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceScreen.iPhone-en-GB-0.png +++ b/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceScreen.iPhone-en-GB-0.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:64252a750f84f6a263dc52b2823edf8152168ad4eb3b17d722b41e3d56c9d251 -size 177624 +oid sha256:c6b9e42d092587faa349ec2bf983981988273f562c8407b3c5896acad03c18fd +size 177322 diff --git a/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceScreen.iPhone-pseudo-0.png b/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceScreen.iPhone-pseudo-0.png index 18eefce90..8d36da52c 100644 --- a/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceScreen.iPhone-pseudo-0.png +++ b/PreviewTests/Sources/__Snapshots__/PreviewTests/spaceScreen.iPhone-pseudo-0.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c50a825037c9b8817491bd198514a5489a2bce3c5cd997dec201310339b2e0ef -size 201912 +oid sha256:e2e77e90bc23b3aa923b43982d45c4ca4d42bb3624d0c202d1e7f6d014964ce9 +size 200940