profile: remove redundant pfp border circle
This commit is contained in:
@@ -192,20 +192,15 @@ struct ProfileView: View {
|
|||||||
let pfp_size: CGFloat = 90.0
|
let pfp_size: CGFloat = 90.0
|
||||||
|
|
||||||
HStack(alignment: .center) {
|
HStack(alignment: .center) {
|
||||||
Circle()
|
ProfilePicView(pubkey: profile.pubkey, size: pfp_size, highlight: .custom(imageBorderColor(), 4.0), profiles: damus_state.profiles)
|
||||||
.frame(width: pfp_size, height: pfp_size) // Increase this to see a frame.
|
.onTapGesture {
|
||||||
.foregroundColor(imageBorderColor())
|
is_zoomed.toggle()
|
||||||
.overlay{
|
}
|
||||||
ProfilePicView(pubkey: profile.pubkey, size: pfp_size, highlight: .custom(.black, 4.0), profiles: damus_state.profiles)
|
.sheet(isPresented: $is_zoomed) {
|
||||||
.onTapGesture {
|
ProfilePicView(pubkey: profile.pubkey, size: zoom_size, highlight: .none, profiles: damus_state.profiles)
|
||||||
is_zoomed.toggle()
|
|
||||||
}
|
|
||||||
.sheet(isPresented: $is_zoomed) {
|
|
||||||
ProfilePicView(pubkey: profile.pubkey, size: zoom_size, highlight: .none, profiles: damus_state.profiles)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.offset(y: -(pfp_size/2.0)) // Increase if set a frame
|
.offset(y: -(pfp_size/2.0)) // Increase if set a frame
|
||||||
|
|
||||||
Spacer()
|
Spacer()
|
||||||
|
|
||||||
if let profile = data {
|
if let profile = data {
|
||||||
|
|||||||
Reference in New Issue
Block a user