From 08bd8c0acbac298c694f52ddd205d164c3ea34d9 Mon Sep 17 00:00:00 2001 From: Anna Zakharova Date: Mon, 1 Apr 2024 15:48:07 +0100 Subject: [PATCH] IOS-2438 Fix TextRelationEditingView custom toolbar --- .../Text/TextRelationEditingView.swift | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Anytype/Sources/PresentationLayer/Common/SwiftUI/RelationDetailsViews/Text/TextRelationEditingView.swift b/Anytype/Sources/PresentationLayer/Common/SwiftUI/RelationDetailsViews/Text/TextRelationEditingView.swift index dd5e9f7dbb..b4d4b7bf37 100644 --- a/Anytype/Sources/PresentationLayer/Common/SwiftUI/RelationDetailsViews/Text/TextRelationEditingView.swift +++ b/Anytype/Sources/PresentationLayer/Common/SwiftUI/RelationDetailsViews/Text/TextRelationEditingView.swift @@ -43,13 +43,14 @@ struct TextRelationEditingView: View { private var toolbar: some View { HStack(spacing: 0) { clearButton - .frame(maxWidth: .infinity, alignment: .leading) + .frame(maxWidth: 100, alignment: .leading) - TitleView(title: viewModel.config.title) + AnytypeText(viewModel.config.title, style: .uxTitle1Semibold, color: .Text.primary) + .multilineTextAlignment(.center) .frame(maxWidth: .infinity) pasteButton - .frame(maxWidth: .infinity, alignment: .trailing) + .frame(maxWidth: 100, alignment: .trailing) } .frame(height: 48) }