Skip to content

Commit

Permalink
Merge pull request #1094 from anyproto/ios-2438-relations-text-remake…
Browse files Browse the repository at this point in the history
…-to-swiftui

iOS-2438 Fix TextRelationEditingView custom toolbar
  • Loading branch information
joe-pusya authored Apr 1, 2024
2 parents 88f2b4f + 08bd8c0 commit 7e3958f
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 7e3958f

Please sign in to comment.