Fix reaction borders

This commit is contained in:
Stefan Ceriu
2023-06-30 12:24:15 +03:00
committed by Stefan Ceriu
parent f1d53649e0
commit 6dc96295f6
@@ -43,7 +43,8 @@ struct TimelineReactionButton: View {
@State private var didLongPress = false @State private var didLongPress = false
var body: some View { var body: some View {
label.onTapGesture { label
.onTapGesture {
toggleReaction(reaction.key) toggleReaction(reaction.key)
} }
.longPressWithFeedback { .longPressWithFeedback {
@@ -64,8 +65,7 @@ struct TimelineReactionButton: View {
.padding(.vertical, 6) .padding(.vertical, 6)
.padding(.horizontal, 8) .padding(.horizontal, 8)
.background(backgroundShape.fill(overlayBackgroundColor)) .background(backgroundShape.fill(overlayBackgroundColor))
.overlay(backgroundShape.strokeBorder(overlayBorderColor)) .overlay(backgroundShape.inset(by: 2.0).strokeBorder(overlayBorderColor))
.padding(2)
.overlay(backgroundShape.strokeBorder(Color.compound.bgCanvasDefault, lineWidth: 2)) .overlay(backgroundShape.strokeBorder(Color.compound.bgCanvasDefault, lineWidth: 2))
.accessibilityElement(children: .combine) .accessibilityElement(children: .combine)
} }