ui(chat): align status pill with send
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user