ui(chat): align status pill with send

This commit is contained in:
Peter Steinberger
2025-12-17 17:53:17 +01:00
parent 5b9e51bfaa
commit 9fe04f5659

View File

@@ -133,9 +133,10 @@ struct ClawdisChatComposer: View {
.overlay(alignment: .topLeading) { .overlay(alignment: .topLeading) {
self.editorOverlay self.editorOverlay
} }
.overlay(alignment: .bottomTrailing) { .overlay(alignment: .bottom) {
VStack(alignment: .trailing, spacing: 6) { HStack(alignment: .bottom, spacing: 8) {
self.connectionPill self.connectionPill
Spacer(minLength: 0)
self.sendButton self.sendButton
} }
.padding(8) .padding(8)
@@ -177,12 +178,14 @@ struct ClawdisChatComposer: View {
.padding(.horizontal, 8) .padding(.horizontal, 8)
.padding(.vertical, 5) .padding(.vertical, 5)
.padding(.trailing, 44) .padding(.trailing, 44)
.padding(.bottom, 28)
#else #else
TextEditor(text: self.$viewModel.input) TextEditor(text: self.$viewModel.input)
.font(.system(size: 15)) .font(.system(size: 15))
.scrollContentBackground(.hidden) .scrollContentBackground(.hidden)
.padding(.horizontal, 8) .padding(.horizontal, 8)
.padding(.vertical, 8) .padding(.vertical, 8)
.padding(.bottom, 28)
.focused(self.$isFocused) .focused(self.$isFocused)
#endif #endif
} }