mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-24 22:45:19 +00:00
Fix iOS peer dropdown positioning
- Remove frame constraint on peer status view - Add fixedSize() to menu label for compact layout - Reduce internal spacing in menu label from 4 to 2 points
This commit is contained in:
@@ -113,7 +113,6 @@ struct ContentView: View {
|
||||
|
||||
// Peer status section
|
||||
peerStatusView
|
||||
.frame(maxWidth: 120)
|
||||
}
|
||||
|
||||
Spacer()
|
||||
@@ -175,7 +174,7 @@ struct ContentView: View {
|
||||
}
|
||||
}
|
||||
} label: {
|
||||
HStack(spacing: 4) {
|
||||
HStack(spacing: 2) {
|
||||
// Text
|
||||
Text(viewModel.isConnected ? "\(viewModel.connectedPeers.count) \(viewModel.connectedPeers.count == 1 ? "person" : "people")" : "scanning")
|
||||
.font(.system(size: 14, design: .monospaced))
|
||||
@@ -188,6 +187,7 @@ struct ContentView: View {
|
||||
.frame(width: 5, height: 5)
|
||||
}
|
||||
}
|
||||
.fixedSize()
|
||||
}
|
||||
#if os(macOS)
|
||||
.menuStyle(.borderlessButton)
|
||||
|
||||
Reference in New Issue
Block a user