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:
jack
2025-07-02 21:39:31 +02:00
parent e50f14eeed
commit 1eaba703e9
3 changed files with 44 additions and 37 deletions
+13 -8
View File
@@ -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 {