edit padding

This commit is contained in:
cheykrym 2025-10-22 05:25:20 +03:00
parent 9685674056
commit c6e17f0fc5

View File

@ -255,7 +255,7 @@ struct PrivateChatView: View {
} }
} }
} }
.padding(.horizontal, 10) .padding(.horizontal, 6)
.padding(.top, 10) .padding(.top, 10)
.padding(.bottom, 8) .padding(.bottom, 8)
.background(.ultraThinMaterial) .background(.ultraThinMaterial)
@ -271,11 +271,11 @@ struct PrivateChatView: View {
private var sendButton: some View { private var sendButton: some View {
Button(action: sendCurrentMessage) { Button(action: sendCurrentMessage) {
Image(systemName: viewModel.isSending ? "hourglass" : "paperplane.fill") Image(systemName: "paperplane.fill")
.font(.system(size: 18, weight: .semibold)) .font(.system(size: 18, weight: .semibold))
.foregroundColor(.white) .foregroundColor(Color.white.opacity(isSendDisabled ? 0.6 : 1))
.frame(width: 40, height: 40) .frame(width: 40, height: 40)
.background(Color.accentColor) .background(isSendDisabled ? Color.accentColor.opacity(0.4) : Color.accentColor)
.clipShape(Circle()) .clipShape(Circle())
} }
.disabled(isSendDisabled) .disabled(isSendDisabled)