From 01763691adc68a2e67f192d2f5127a015a29183f Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 6 Jan 2022 19:23:25 +0000 Subject: [PATCH] Fixes #2931 - Leading margins are not the same, the text is not aligned (#2942) (#2945) (cherry picked from commit 4a290ffeb93007dc3d9a4a415ae82c9cd1162566) Co-authored-by: IORDAN RALUCA Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- Blockzilla/AutocompleteSettingViewController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Blockzilla/AutocompleteSettingViewController.swift b/Blockzilla/AutocompleteSettingViewController.swift index 2092b6201b..99bb6da0b6 100644 --- a/Blockzilla/AutocompleteSettingViewController.swift +++ b/Blockzilla/AutocompleteSettingViewController.swift @@ -52,7 +52,7 @@ class AutocompleteSettingViewController: UIViewController, UITableViewDelegate, if indexPath.section == 0 { cell = UITableViewCell(style: .subtitle, reuseIdentifier: "enableCell") cell.textLabel?.text = UIConstants.strings.autocompleteTopSites - + cell.contentView.layoutMargins = UIEdgeInsets(top: 0, left: UIConstants.layout.settingsCellLeftInset, bottom: 0, right: 0) let toggle = UISwitch() toggle.addTarget(self, action: #selector(defaultToggleSwitched(_:)), for: .valueChanged) toggle.accessibilityIdentifier = "toggleAutocompleteSwitch" @@ -64,7 +64,7 @@ class AutocompleteSettingViewController: UIViewController, UITableViewDelegate, if indexPath.row == 0 { cell = UITableViewCell(style: .subtitle, reuseIdentifier: "enableCell") cell.textLabel?.text = UIConstants.strings.autocompleteMySites - + cell.contentView.layoutMargins = UIEdgeInsets(top: 0, left: UIConstants.layout.settingsCellLeftInset, bottom: 0, right: 0) let toggle = UISwitch() toggle.addTarget(self, action: #selector(customToggleSwitched(_:)), for: .valueChanged) toggle.accessibilityIdentifier = "toggleCustomAutocompleteSwitch"