From 70783ae74c2af44e889f35be8ff53ab329559002 Mon Sep 17 00:00:00 2001 From: talksik Date: Sun, 12 Dec 2021 01:19:49 -0800 Subject: [PATCH] fixing some padding and such on both carousels --- .../ChatsCarouselView/ChatsCarouselView.swift | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/nirvana-ios/Views/HomeView/ChatsCarouselView/ChatsCarouselView.swift b/nirvana-ios/Views/HomeView/ChatsCarouselView/ChatsCarouselView.swift index 35b26c3..d429909 100644 --- a/nirvana-ios/Views/HomeView/ChatsCarouselView/ChatsCarouselView.swift +++ b/nirvana-ios/Views/HomeView/ChatsCarouselView/ChatsCarouselView.swift @@ -70,18 +70,21 @@ struct ChatsCarouselView: View { .cornerRadius(12) .clipShape(Circle()) .shadow(radius: 10) - .scaleEffect(isSelected ? 1.2 : 0.7) - .padding(.leading, 30.0) + .scaleEffect(isSelected ? 1 : 0.7) + .blur(radius: isSelected ? 0 : 0.9) + .padding(25) .id(user.id) .onTapGesture { withAnimation { self.selectedUserId = user.id } } + .frame(minWidth: 100) } } - .frame(maxHeight: 50) - .padding(.vertical, 20) + .frame(maxWidth: .infinity, maxHeight: 50) + .padding(.vertical, 40) + } .onChange(of: self.selectedUserId) { _ in withAnimation {