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

Commit

Permalink
Fixes #2931 - Leading margins are not the same, the text is not align…
Browse files Browse the repository at this point in the history
…ed (#2942) (#2945)

(cherry picked from commit 4a290ff)

Co-authored-by: IORDAN RALUCA <ralucaiordan@icloud.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
mergify[bot] and rilury committed Jan 6, 2022
1 parent 44119db commit 0176369
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Blockzilla/AutocompleteSettingViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit 0176369

Please sign in to comment.