Skip to content

Commit f6ac285

Browse files
committed
Adjusts info cells on the privacy settings screen
1 parent 5e30c33 commit f6ac285

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

WooCommerce/Classes/ViewRelated/Dashboard/Settings/Privacy/PrivacySettingsViewController.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ private extension PrivacySettingsViewController {
345345
if isPrivacyChoicesEnabled {
346346
cell.textLabel?.applySubheadlineStyle()
347347
cell.textLabel?.textColor = .textSubtle
348+
cell.contentView.directionalLayoutMargins = .init(top: 0, leading: 0, bottom: 0, trailing: Constants.toggleDescriptionMargin)
348349
}
349350
}
350351

@@ -596,6 +597,7 @@ private struct Constants {
596597
static let headerTitleInsets = UIEdgeInsets(top: 16, left: 14, bottom: 32, right: 14)
597598
static let footerInsets = UIEdgeInsets(top: 8, left: 16, bottom: 16, right: 16)
598599
static let footerPadding = CGFloat(44)
600+
static let toggleDescriptionMargin = CGFloat(40)
599601
}
600602

601603
private struct Section {

0 commit comments

Comments
 (0)