mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Composer and RTE polish (#1719)
* Move link button * Always show indent buttons * Fix code blocks and quote block styles * Fix code blocks and quotes style * Update composer attachment icon * Fix send message icon * Fix composer border * Fix rte border * Update RTE button assets * Update close rte icon * Refactor RTE and composer layout * more padding fixes * Update compound * Update WysiwygComposer to 2.11.0 * Fix ui tests * Fix composer bottom padding * Update snapshot tests
This commit is contained in:
@@ -23,8 +23,6 @@ struct RoomScreen: View {
|
||||
@State private var dragOver = false
|
||||
let composerToolbar: ComposerToolbar
|
||||
|
||||
private let attachmentButtonPadding = 10.0
|
||||
|
||||
init(context: RoomScreenViewModel.Context, composerToolbar: ComposerToolbar) {
|
||||
self.context = context
|
||||
self.composerToolbar = composerToolbar
|
||||
@@ -36,13 +34,13 @@ struct RoomScreen: View {
|
||||
.background(Color.compound.bgCanvasDefault.ignoresSafeArea())
|
||||
.safeAreaInset(edge: .bottom, spacing: 0) {
|
||||
composerToolbar
|
||||
.padding(.leading, attachmentButtonPadding)
|
||||
.padding(.trailing, 12)
|
||||
.padding(.bottom)
|
||||
.padding(.leading, 5)
|
||||
.padding(.trailing, 8)
|
||||
.padding(.bottom, composerToolbarContext.composerActionsEnabled ? 8 : 12)
|
||||
.background {
|
||||
if composerToolbarContext.composerActionsEnabled {
|
||||
RoundedRectangle(cornerRadius: 20)
|
||||
.stroke(Color.compound._borderTextFieldFocused, lineWidth: 1)
|
||||
.stroke(Color.compound.borderInteractiveSecondary, lineWidth: 0.5)
|
||||
.ignoresSafeArea()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user