damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 59e7a42b5f7eca485327ce7729a9ba4c07976947
parent 0552c2410871a46d3f9eab2fe03263a30f8e625e
Author: Terry Yiu <963907+tyiu@users.noreply.github.com>
Date:   Thu, 25 May 2023 23:45:27 -0400

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
Closes: #1175

Diffstat:
Mdamus/Views/SideMenuView.swift | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git 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 {