mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-05 20:09:04 +00:00
Threaded timeline composer
This commit is contained in:
committed by
Stefan Ceriu
parent
c6c32079f6
commit
9804be70eb
@@ -219,8 +219,8 @@ final class RoomScreenCoordinator: CoordinatorProtocol {
|
||||
wysiwygViewModel: wysiwygViewModel,
|
||||
keyCommands: composerViewModel.keyCommands)
|
||||
|
||||
return AnyView(RoomScreen(roomViewModel: roomViewModel,
|
||||
timelineViewModel: timelineViewModel,
|
||||
return AnyView(RoomScreen(roomContext: roomViewModel.context,
|
||||
timelineContext: timelineViewModel.context,
|
||||
composerToolbar: composerToolbar)
|
||||
.onDisappear { [weak self] in
|
||||
self?.composerViewModel.saveDraft()
|
||||
@@ -234,20 +234,3 @@ enum ComposerConstant {
|
||||
static let allowedHeightRange = minHeight...maxHeight
|
||||
static let translationThreshold: CGFloat = 60
|
||||
}
|
||||
|
||||
private extension HTMLParserStyle {
|
||||
static let elementX = HTMLParserStyle(textColor: UIColor.label,
|
||||
linkColor: UIColor.link,
|
||||
codeBlockStyle: BlockStyle(backgroundColor: UIColor.compound._bgCodeBlock,
|
||||
borderColor: UIColor.compound.borderInteractiveSecondary,
|
||||
borderWidth: 1.0,
|
||||
cornerRadius: 2.0,
|
||||
padding: BlockStyle.Padding(horizontal: 10, vertical: 12),
|
||||
type: .background),
|
||||
quoteBlockStyle: BlockStyle(backgroundColor: UIColor.compound.iconTertiary,
|
||||
borderColor: UIColor.compound.borderInteractiveSecondary,
|
||||
borderWidth: 0.0,
|
||||
cornerRadius: 0.0,
|
||||
padding: BlockStyle.Padding(horizontal: 25, vertical: 12),
|
||||
type: .side(offset: 5, width: 4)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user