mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-25 02:25:20 +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
|
// Peer status section
|
||||||
peerStatusView
|
peerStatusView
|
||||||
.frame(maxWidth: 120)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Spacer()
|
Spacer()
|
||||||
@@ -175,7 +174,7 @@ struct ContentView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} label: {
|
} label: {
|
||||||
HStack(spacing: 4) {
|
HStack(spacing: 2) {
|
||||||
// Text
|
// Text
|
||||||
Text(viewModel.isConnected ? "\(viewModel.connectedPeers.count) \(viewModel.connectedPeers.count == 1 ? "person" : "people")" : "scanning")
|
Text(viewModel.isConnected ? "\(viewModel.connectedPeers.count) \(viewModel.connectedPeers.count == 1 ? "person" : "people")" : "scanning")
|
||||||
.font(.system(size: 14, design: .monospaced))
|
.font(.system(size: 14, design: .monospaced))
|
||||||
@@ -188,6 +187,7 @@ struct ContentView: View {
|
|||||||
.frame(width: 5, height: 5)
|
.frame(width: 5, height: 5)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.fixedSize()
|
||||||
}
|
}
|
||||||
#if os(macOS)
|
#if os(macOS)
|
||||||
.menuStyle(.borderlessButton)
|
.menuStyle(.borderlessButton)
|
||||||
|
|||||||
Reference in New Issue
Block a user