Offset and alignment changes.

This commit is contained in:
Stuart Breckenridge 2020-10-29 20:14:17 +08:00
parent 29fee1b590
commit 80744982f5
No known key found for this signature in database
GPG Key ID: 802A426F493CA19C
1 changed files with 10 additions and 7 deletions

View File

@ -219,24 +219,27 @@ struct AddAccountsView: View {
.padding(.top, 8) .padding(.top, 8)
Picker(selection: $selectedAccount, label: Text(""), content: { Picker(selection: $selectedAccount, label: Text(""), content: {
ForEach(AddAccountSections.selfhosted.sectionContent, id: \.self, content: { account in ForEach(AddAccountSections.selfhosted.sectionContent, id: \.self, content: { account in
HStack { HStack(alignment: .top) {
account.image() account.image()
.resizable() .resizable()
.aspectRatio(contentMode: .fit) .aspectRatio(contentMode: .fit)
.frame(width: 25, height: 25, alignment: .center) .frame(width: 25, height: 25, alignment: .center)
.offset(CGSize(width: 0, height: -4))
.padding(.leading, 4) .padding(.leading, 4)
VStack(alignment: .leading, spacing: 4) {
Text(account.localizedAccountName()) Text(account.localizedAccountName())
Text("Web and self-hosted accounts sync across all signed-in devices.")
.font(.caption)
.foregroundColor(.gray)
}
}.tag(account) }.tag(account)
}) })
}) })
.offset(x: 7.5, y: 0) .offset(x: 7.5, y: 0)
Text("Web and self-hosted accounts sync across all signed-in devices.")
.font(.caption)
.foregroundColor(.gray)
.padding(.horizontal)
.offset(x: 57)
} }
} }