mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-06 12:28:29 +00:00
Fix reaction borders
This commit is contained in:
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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user