From 80744982f597d9af832b3997d453bf652f036796 Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Thu, 29 Oct 2020 20:14:17 +0800 Subject: [PATCH] Offset and alignment changes. --- Mac/Preferences/Accounts/AddAccountsView.swift | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Mac/Preferences/Accounts/AddAccountsView.swift b/Mac/Preferences/Accounts/AddAccountsView.swift index 54d423a33..83ca5bbd2 100644 --- a/Mac/Preferences/Accounts/AddAccountsView.swift +++ b/Mac/Preferences/Accounts/AddAccountsView.swift @@ -219,24 +219,27 @@ struct AddAccountsView: View { .padding(.top, 8) Picker(selection: $selectedAccount, label: Text(""), content: { ForEach(AddAccountSections.selfhosted.sectionContent, id: \.self, content: { account in - HStack { + HStack(alignment: .top) { account.image() .resizable() .aspectRatio(contentMode: .fit) .frame(width: 25, height: 25, alignment: .center) + .offset(CGSize(width: 0, height: -4)) .padding(.leading, 4) + - Text(account.localizedAccountName()) + VStack(alignment: .leading, spacing: 4) { + Text(account.localizedAccountName()) + Text("Web and self-hosted accounts sync across all signed-in devices.") + .font(.caption) + .foregroundColor(.gray) + } }.tag(account) }) }) .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) + } }