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
This commit is contained in:
2023-05-25 23:45:27 -04:00
committed by William Casarin
parent 0552c24108
commit 59e7a42b5f

View File

@@ -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 {