ui(chat): reduce padding

main
Peter Steinberger 2025-12-17 17:59:01 +01:00
parent 9fe04f5659
commit 6652b1f4f3
2 changed files with 15 additions and 15 deletions

View File

@ -17,8 +17,8 @@ struct ClawdisChatComposer: View {
#endif #endif
var body: some View { var body: some View {
VStack(alignment: .leading, spacing: 8) { VStack(alignment: .leading, spacing: 6) {
HStack(spacing: 10) { HStack(spacing: 8) {
self.thinkingPicker self.thinkingPicker
Spacer() Spacer()
self.refreshButton self.refreshButton
@ -38,7 +38,7 @@ struct ClawdisChatComposer: View {
.lineLimit(2) .lineLimit(2)
} }
} }
.padding(10) .padding(8)
.background( .background(
RoundedRectangle(cornerRadius: 16, style: .continuous) RoundedRectangle(cornerRadius: 16, style: .continuous)
.fill(ClawdisChatTheme.card) .fill(ClawdisChatTheme.card)
@ -163,12 +163,12 @@ struct ClawdisChatComposer: View {
private var editorOverlay: some View { private var editorOverlay: some View {
ZStack(alignment: .topLeading) { ZStack(alignment: .topLeading) {
if self.viewModel.input.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty { if self.viewModel.input.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty {
Text("Message Clawd…") Text("Message Clawd…")
.foregroundStyle(.tertiary) .foregroundStyle(.tertiary)
.padding(.horizontal, 10) .padding(.horizontal, 8)
.padding(.vertical, 6) .padding(.vertical, 6)
} }
#if os(macOS) #if os(macOS)
ChatComposerTextView(text: self.$viewModel.input) { ChatComposerTextView(text: self.$viewModel.input) {

View File

@ -17,12 +17,12 @@ public struct ClawdisChatView: View {
ClawdisChatTheme.surface ClawdisChatTheme.surface
.ignoresSafeArea() .ignoresSafeArea()
VStack(spacing: 8) { VStack(spacing: 6) {
self.messageList self.messageList
ClawdisChatComposer(viewModel: self.viewModel) ClawdisChatComposer(viewModel: self.viewModel)
} }
.padding(.horizontal, 8) .padding(.horizontal, 6)
.padding(.vertical, 8) .padding(.vertical, 6)
.frame(maxWidth: .infinity) .frame(maxWidth: .infinity)
} }
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .top) .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .top)
@ -66,9 +66,9 @@ public struct ClawdisChatView: View {
.frame(height: 1) .frame(height: 1)
.id(self.scrollerBottomID) .id(self.scrollerBottomID)
} }
.padding(.top, 8) .padding(.top, 4)
.padding(.bottom, 8) .padding(.bottom, 6)
.padding(.horizontal, 10) .padding(.horizontal, 8)
} }
.background( .background(
RoundedRectangle(cornerRadius: 16, style: .continuous) RoundedRectangle(cornerRadius: 16, style: .continuous)