From 5bf5402919ce1447bf413a2ee9e17bbbdb167849 Mon Sep 17 00:00:00 2001 From: Terry Yiu <963907+tyiu@users.noreply.github.com> Date: Thu, 25 May 2023 23:45:27 -0400 Subject: [PATCH] Fix side menu label size so that translations in longer languages fit without wrapping Changelog-Fixed: Fix side menu label size so that translations in longer languages fit without wrapping --- damus/Views/SideMenuView.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/damus/Views/SideMenuView.swift b/damus/Views/SideMenuView.swift index 2d54e808..a362339f 100644 --- a/damus/Views/SideMenuView.swift +++ b/damus/Views/SideMenuView.swift @@ -57,6 +57,7 @@ struct SideMenuView: View { .font(.title2) .foregroundColor(textColor()) .frame(maxWidth: .infinity, alignment: .leading) + .dynamicTypeSize(.xSmall) } } @@ -144,6 +145,7 @@ struct SideMenuView: View { .font(.title3) .foregroundColor(textColor()) .frame(maxWidth: .infinity, alignment: .leading) + .dynamicTypeSize(.xSmall) }) Spacer() @@ -154,6 +156,7 @@ struct SideMenuView: View { Label("", systemImage: "qrcode") .font(.title) .foregroundColor(textColor()) + .dynamicTypeSize(.xSmall) }).fullScreenCover(isPresented: $showQRCode) { QRCodeView(damus_state: damus_state, pubkey: damus_state.pubkey) } @@ -188,6 +191,7 @@ struct SideMenuView: View { .font(.title2) .foregroundColor(textColor()) .frame(maxWidth: .infinity, alignment: .leading) + .dynamicTypeSize(.xSmall) } struct SideMenuLabelStyle: LabelStyle {