fixing some padding and such on both carousels
This commit is contained in:
@@ -70,18 +70,21 @@ struct ChatsCarouselView: View {
|
|||||||
.cornerRadius(12)
|
.cornerRadius(12)
|
||||||
.clipShape(Circle())
|
.clipShape(Circle())
|
||||||
.shadow(radius: 10)
|
.shadow(radius: 10)
|
||||||
.scaleEffect(isSelected ? 1.2 : 0.7)
|
.scaleEffect(isSelected ? 1 : 0.7)
|
||||||
.padding(.leading, 30.0)
|
.blur(radius: isSelected ? 0 : 0.9)
|
||||||
|
.padding(25)
|
||||||
.id(user.id)
|
.id(user.id)
|
||||||
.onTapGesture {
|
.onTapGesture {
|
||||||
withAnimation {
|
withAnimation {
|
||||||
self.selectedUserId = user.id
|
self.selectedUserId = user.id
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.frame(minWidth: 100)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.frame(maxHeight: 50)
|
.frame(maxWidth: .infinity, maxHeight: 50)
|
||||||
.padding(.vertical, 20)
|
.padding(.vertical, 40)
|
||||||
|
|
||||||
}
|
}
|
||||||
.onChange(of: self.selectedUserId) { _ in
|
.onChange(of: self.selectedUserId) { _ in
|
||||||
withAnimation {
|
withAnimation {
|
||||||
|
|||||||
Reference in New Issue
Block a user