Composer mode UI updates (#984)

* Fixes #975 - Update editing message UI

* Fixes #976 - Update reply composer mode UI to include message being replied to

* Use different icon corner radii in the timeline reply view depending on its placement
This commit is contained in:
Stefan Ceriu
2023-05-31 14:51:51 +03:00
committed by GitHub
parent 87075eecfd
commit 83e3d828cd
19 changed files with 230 additions and 93 deletions
@@ -28,6 +28,7 @@ struct RoomScreen: View {
HStack(spacing: 4.0) {
RoomAttachmentPicker(context: context)
messageComposer
.environmentObject(context)
}
.padding([.horizontal, .bottom])
.padding(.top, 8)
@@ -69,7 +70,7 @@ struct RoomScreen: View {
MessageComposer(text: $context.composerText,
focused: $context.composerFocused,
sendingDisabled: context.viewState.sendButtonDisabled,
type: context.viewState.composerMode) {
mode: context.viewState.composerMode) {
sendMessage()
} pasteAction: { provider in
context.send(viewAction: .handlePasteOrDrop(provider: provider))