Fix borders

This commit is contained in:
Alfonso Grillo 2022-12-16 11:48:39 +01:00
parent c972c1115c
commit 4c4e262776
4 changed files with 6 additions and 4 deletions

View file

@ -19,10 +19,12 @@ import SwiftUI
struct SeparatorLine: View {
@Environment(\.theme) private var theme: ThemeSwiftUI
var height: CGFloat = 1.0
var body: some View {
Rectangle()
.fill(theme.colors.quinaryContent)
.frame(maxWidth: .infinity)
.frame(height: 1.0)
.frame(height: height)
}
}

View file

@ -112,7 +112,7 @@ struct UserSessionCardView: View {
.frame(maxWidth: .infinity)
.background(theme.colors.background)
.clipShape(backgroundShape)
.shapedBorder(color: theme.colors.quinaryContent, borderWidth: 1.0, shape: backgroundShape)
.shapedBorder(color: theme.colors.quinaryContent, borderWidth: 0.5, shape: backgroundShape)
.onTapGesture {
if viewData.isCurrentSessionDisplayMode {
onViewDetailsAction?(viewData.sessionId)

View file

@ -52,7 +52,7 @@ struct SecurityRecommendationCard: View {
.padding(16)
.background(theme.colors.background)
.clipShape(backgroundShape)
.shapedBorder(color: theme.colors.quinaryContent, borderWidth: 1.0, shape: backgroundShape)
.shapedBorder(color: theme.colors.quinaryContent, borderWidth: 0.5, shape: backgroundShape)
.onTapGesture {
action()
}

View file

@ -67,7 +67,7 @@ struct UserSessionListItem: View {
}
.padding(.bottom, 16)
.padding(.trailing, 16)
SeparatorLine()
SeparatorLine(height: 0.5)
.isHidden(isSeparatorHidden)
}
.padding(.leading, 7)