mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Fix borders
This commit is contained in:
parent
c972c1115c
commit
4c4e262776
4 changed files with 6 additions and 4 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
|
|
@ -67,7 +67,7 @@ struct UserSessionListItem: View {
|
|||
}
|
||||
.padding(.bottom, 16)
|
||||
.padding(.trailing, 16)
|
||||
SeparatorLine()
|
||||
SeparatorLine(height: 0.5)
|
||||
.isHidden(isSeparatorHidden)
|
||||
}
|
||||
.padding(.leading, 7)
|
||||
|
|
Loading…
Reference in a new issue