From 6dc96295f6355645cfffc789f1eae6657c281d9a Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Fri, 30 Jun 2023 12:24:15 +0300 Subject: [PATCH] Fix reaction borders --- .../Supplementary/TimelineReactionsView.swift | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ElementX/Sources/Screens/RoomScreen/View/Supplementary/TimelineReactionsView.swift b/ElementX/Sources/Screens/RoomScreen/View/Supplementary/TimelineReactionsView.swift index 46ab52382..99bbfa070 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Supplementary/TimelineReactionsView.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Supplementary/TimelineReactionsView.swift @@ -43,12 +43,13 @@ struct TimelineReactionButton: View { @State private var didLongPress = false var body: some View { - label.onTapGesture { - toggleReaction(reaction.key) - } - .longPressWithFeedback { - showReactionSummary(reaction.key) - } + label + .onTapGesture { + toggleReaction(reaction.key) + } + .longPressWithFeedback { + showReactionSummary(reaction.key) + } } var label: some View { @@ -64,8 +65,7 @@ struct TimelineReactionButton: View { .padding(.vertical, 6) .padding(.horizontal, 8) .background(backgroundShape.fill(overlayBackgroundColor)) - .overlay(backgroundShape.strokeBorder(overlayBorderColor)) - .padding(2) + .overlay(backgroundShape.inset(by: 2.0).strokeBorder(overlayBorderColor)) .overlay(backgroundShape.strokeBorder(Color.compound.bgCanvasDefault, lineWidth: 2)) .accessibilityElement(children: .combine) }