Skip to content

Commit

Permalink
adjust sync banner
Browse files Browse the repository at this point in the history
  • Loading branch information
SabrinaTardio committed Jan 18, 2024
1 parent 6aad334 commit ac7e9c0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@ public struct SyncSettingsView: View {
}
}
} else {
rolloutBanner()
List {

rolloutBanner()

if model.isSyncEnabled {

syncUnavailableViewWhileLoggedIn()
Expand Down Expand Up @@ -76,7 +74,6 @@ public struct SyncSettingsView: View {
syncWithAnotherDeviceView()

otherOptions()

}
}
.navigationTitle(UserText.syncTitle)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,19 +306,18 @@ extension SyncSettingsView {

@ViewBuilder
func rolloutBanner() -> some View {
Section {
EmptyView()
} header: {
HStack(alignment: .top, spacing: 16) {
Image("Info-Color-16")
Text(UserText.syncRollOutBannerDescription)
.font(.system(size: 12))
.foregroundColor(.primary)
}
.padding()
.background(RoundedRectangle(cornerRadius: 8).foregroundColor(Color("RolloutBannerBackground")))
.padding(.bottom, 10)
HStack(alignment: .top, spacing: 16) {
Image("Info-Color-16")
Text(UserText.syncRollOutBannerDescription)
.font(.system(size: 12))
.foregroundColor(.primary)
.multilineTextAlignment(.leading)
.fixedSize(horizontal: false, vertical: true)
}
.padding()
.background(RoundedRectangle(cornerRadius: 8).foregroundColor(Color("RolloutBannerBackground")))
.padding(.bottom, 10)
.padding(.horizontal, 16)
}

enum LimitedItemType {
Expand Down

0 comments on commit ac7e9c0

Please sign in to comment.