Compare commits

...

4 Commits

Author SHA1 Message Date
93c865f5ca fix pos buttom 2025-10-22 05:38:58 +03:00
2d3299fe96 fix 2025-10-22 05:32:55 +03:00
2c31d25596 fix size 2025-10-22 05:31:01 +03:00
c6e17f0fc5 edit padding 2025-10-22 05:25:20 +03:00

View File

@ -209,7 +209,7 @@ struct PrivateChatView: View {
private var composer: some View {
VStack(spacing: 10) {
HStack(alignment: .bottom, spacing: 3) {
HStack(alignment: .bottom, spacing: 4) {
Button(action: { }) { // переключатель на стикеры
Image(systemName: "paperclip")
.font(.system(size: 18, weight: .semibold))
@ -241,6 +241,9 @@ struct PrivateChatView: View {
.frame(minHeight: 40, alignment: .bottom)
.background(Color(.secondarySystemBackground))
.clipShape(RoundedRectangle(cornerRadius: 18, style: .continuous))
.alignmentGuide(.bottom) { dimension in
dimension[VerticalAlignment.bottom] - 2
}
if !isSendAvailable {
Button(action: { isVideoPreferred.toggle() }) {
@ -255,7 +258,7 @@ struct PrivateChatView: View {
}
}
}
.padding(.horizontal, 10)
.padding(.horizontal, 6)
.padding(.top, 10)
.padding(.bottom, 8)
.background(.ultraThinMaterial)
@ -271,11 +274,11 @@ struct PrivateChatView: View {
private var sendButton: some View {
Button(action: sendCurrentMessage) {
Image(systemName: viewModel.isSending ? "hourglass" : "paperplane.fill")
.font(.system(size: 18, weight: .semibold))
.foregroundColor(.white)
.frame(width: 40, height: 40)
.background(Color.accentColor)
Image(systemName: "paperplane.fill")
.font(.system(size: 16, weight: .semibold))
.foregroundColor(Color.white.opacity(isSendDisabled ? 0.6 : 1))
.frame(width: 36, height: 36)
.background(isSendDisabled ? Color.accentColor.opacity(0.4) : Color.accentColor)
.clipShape(Circle())
}
.disabled(isSendDisabled)