mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-27 11:25:20 +00:00
Fix peer dropdown layout and announcement timing
- Move peer dropdown next to bitchat title - Add immediate peer announcement on connection - Fix iOS menu chevron visibility with platform-specific styling - Force UI updates for join/leave messages - Add peers to active list immediately on connection - Remove all announcement delays for instant name resolution
This commit is contained in:
@@ -106,14 +106,15 @@ struct ContentView: View {
|
||||
.opacity(0)
|
||||
} else {
|
||||
// Public chat header
|
||||
Text("bitchat")
|
||||
.font(.system(size: 18, weight: .medium, design: .monospaced))
|
||||
.foregroundColor(textColor)
|
||||
|
||||
Spacer()
|
||||
|
||||
// Peer status section
|
||||
peerStatusView
|
||||
HStack(spacing: 12) {
|
||||
Text("bitchat")
|
||||
.font(.system(size: 18, weight: .medium, design: .monospaced))
|
||||
.foregroundColor(textColor)
|
||||
|
||||
// Peer status section
|
||||
peerStatusView
|
||||
.frame(maxWidth: 120)
|
||||
}
|
||||
|
||||
Spacer()
|
||||
|
||||
@@ -188,7 +189,11 @@ struct ContentView: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
#if os(macOS)
|
||||
.menuStyle(.borderlessButton)
|
||||
#else
|
||||
.menuStyle(.automatic)
|
||||
#endif
|
||||
}
|
||||
|
||||
private var messagesView: some View {
|
||||
|
||||
Reference in New Issue
Block a user