mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-11-22 08:17:28 +00:00
Preserve the 36-point minimum for composer controls
Keep all six composer control frames at least 36 points while preserving growth at larger Dynamic Type sizes.
This commit is contained in:
parent
fb01755238
commit
16b783f661
@ -28,7 +28,11 @@ struct ContentComposerView: View {
|
||||
@Binding var showMacImagePicker: Bool
|
||||
#endif
|
||||
|
||||
@ScaledMetric(relativeTo: .title2) private var composerActionSize: CGFloat = 36
|
||||
@ScaledMetric(relativeTo: .title2) private var scaledComposerActionSize: CGFloat = 36
|
||||
|
||||
private var composerActionSize: CGFloat {
|
||||
max(36, scaledComposerActionSize)
|
||||
}
|
||||
|
||||
var body: some View {
|
||||
VStack(alignment: .leading, spacing: 6) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user