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
This commit is contained in:
2023-05-25 23:45:27 -04:00
parent f9a572faa2
commit 5bf5402919

View File

@@ -57,6 +57,7 @@ struct SideMenuView: View {
.font(.title2) .font(.title2)
.foregroundColor(textColor()) .foregroundColor(textColor())
.frame(maxWidth: .infinity, alignment: .leading) .frame(maxWidth: .infinity, alignment: .leading)
.dynamicTypeSize(.xSmall)
} }
} }
@@ -144,6 +145,7 @@ struct SideMenuView: View {
.font(.title3) .font(.title3)
.foregroundColor(textColor()) .foregroundColor(textColor())
.frame(maxWidth: .infinity, alignment: .leading) .frame(maxWidth: .infinity, alignment: .leading)
.dynamicTypeSize(.xSmall)
}) })
Spacer() Spacer()
@@ -154,6 +156,7 @@ struct SideMenuView: View {
Label("", systemImage: "qrcode") Label("", systemImage: "qrcode")
.font(.title) .font(.title)
.foregroundColor(textColor()) .foregroundColor(textColor())
.dynamicTypeSize(.xSmall)
}).fullScreenCover(isPresented: $showQRCode) { }).fullScreenCover(isPresented: $showQRCode) {
QRCodeView(damus_state: damus_state, pubkey: damus_state.pubkey) QRCodeView(damus_state: damus_state, pubkey: damus_state.pubkey)
} }
@@ -188,6 +191,7 @@ struct SideMenuView: View {
.font(.title2) .font(.title2)
.foregroundColor(textColor()) .foregroundColor(textColor())
.frame(maxWidth: .infinity, alignment: .leading) .frame(maxWidth: .infinity, alignment: .leading)
.dynamicTypeSize(.xSmall)
} }
struct SideMenuLabelStyle: LabelStyle { struct SideMenuLabelStyle: LabelStyle {