Skip to content
This repository was archived by the owner on Mar 6, 2024. It is now read-only.

Commit 0176369

Browse files
mergify[bot]rilury
andauthored
Fixes #2931 - Leading margins are not the same, the text is not aligned (#2942) (#2945)
(cherry picked from commit 4a290ff) Co-authored-by: IORDAN RALUCA <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 parent 44119db commit 0176369

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Blockzilla/AutocompleteSettingViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class AutocompleteSettingViewController: UIViewController, UITableViewDelegate,
5252
if indexPath.section == 0 {
5353
cell = UITableViewCell(style: .subtitle, reuseIdentifier: "enableCell")
5454
cell.textLabel?.text = UIConstants.strings.autocompleteTopSites
55-
55+
cell.contentView.layoutMargins = UIEdgeInsets(top: 0, left: UIConstants.layout.settingsCellLeftInset, bottom: 0, right: 0)
5656
let toggle = UISwitch()
5757
toggle.addTarget(self, action: #selector(defaultToggleSwitched(_:)), for: .valueChanged)
5858
toggle.accessibilityIdentifier = "toggleAutocompleteSwitch"
@@ -64,7 +64,7 @@ class AutocompleteSettingViewController: UIViewController, UITableViewDelegate,
6464
if indexPath.row == 0 {
6565
cell = UITableViewCell(style: .subtitle, reuseIdentifier: "enableCell")
6666
cell.textLabel?.text = UIConstants.strings.autocompleteMySites
67-
67+
cell.contentView.layoutMargins = UIEdgeInsets(top: 0, left: UIConstants.layout.settingsCellLeftInset, bottom: 0, right: 0)
6868
let toggle = UISwitch()
6969
toggle.addTarget(self, action: #selector(customToggleSwitched(_:)), for: .valueChanged)
7070
toggle.accessibilityIdentifier = "toggleCustomAutocompleteSwitch"

0 commit comments

Comments
 (0)