Initial timeline design tweaks (#505)

This commit is contained in:
Doug
2023-01-31 13:27:35 +00:00
committed by GitHub
parent d51a9b3a2b
commit 17568a6a2e
31 changed files with 271 additions and 204 deletions
@@ -23,9 +23,12 @@ struct RoomScreen: View {
var body: some View {
timeline
.background(Color.element.background) // Kills the toolbar translucency.
.safeAreaInset(edge: .bottom) { messageComposer }
.navigationBarTitleDisplayMode(.inline)
.toolbar { toolbar }
.toolbarRole(.editor) // Hide the back button title.
.toolbarBackground(.visible, for: .navigationBar) // Fix the toolbar's background.
.overlay { loadingIndicator }
.alert(item: $context.alertInfo) { $0.alert }
.sheet(item: $context.debugInfo) { DebugScreen(info: $0) }
@@ -89,14 +92,6 @@ struct RoomScreen: View {
ToolbarItem(placement: .principal) {
RoomHeaderView(context: context)
}
ToolbarItem(id: "RoomDetailsAction", placement: .secondaryAction, showsByDefault: false) {
Button {
context.send(viewAction: .displayRoomDetails)
} label: {
Label("Room Details", systemImage: "info.circle")
}
}
}
private func sendMessage() {