mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 00:52:43 +02:00
Fix security card tappability
This commit is contained in:
+6
-7
@@ -43,13 +43,9 @@ struct SecurityRecommendationCard: View {
|
||||
.foregroundColor(theme.colors.secondaryContent)
|
||||
}
|
||||
|
||||
Button {
|
||||
action()
|
||||
} label: {
|
||||
Text(buttonTitle)
|
||||
.font(theme.fonts.body)
|
||||
}
|
||||
.foregroundColor(theme.colors.accent)
|
||||
Text(buttonTitle)
|
||||
.font(theme.fonts.body)
|
||||
.foregroundColor(theme.colors.accent)
|
||||
}
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
}
|
||||
@@ -57,6 +53,9 @@ struct SecurityRecommendationCard: View {
|
||||
.background(theme.colors.background)
|
||||
.clipShape(backgroundShape)
|
||||
.shapedBorder(color: theme.colors.quinaryContent, borderWidth: 1.0, shape: backgroundShape)
|
||||
.onTapGesture {
|
||||
action()
|
||||
}
|
||||
}
|
||||
|
||||
private var backgroundShape: RoundedRectangle {
|
||||
|
||||
Reference in New Issue
Block a user