Skip to content

Commit

Permalink
fix: Pairing switch breaks layout on sensor settings #2012 (#2016)
Browse files Browse the repository at this point in the history
  • Loading branch information
priyonto authored May 9, 2024
1 parent 4c838e4 commit 6932491
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class TagSettingsSwitchCell: UITableViewCell {
right: 12
)
)
statusSwitch.widthLessThanOrEqualTo(constant: 80)
statusSwitch.widthLessThanOrEqualTo(constant: 350)
statusSwitch.centerYInSuperview()

addSubview(seprator)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class RuuviSwitchView: UIView {
let label = UILabel()
label.text = RuuviLocalization.off
label.textAlignment = .right
label.numberOfLines = 0
label.numberOfLines = 1
label.textColor = RuuviColor.textColor.color
label.font = UIFont.Muli(.regular, size: 14)
return label
Expand Down Expand Up @@ -106,7 +106,8 @@ extension RuuviSwitchView {
leading: statusLabel.trailingAnchor,
bottom: nil,
trailing: trailingAnchor,
padding: .init(top: 0, left: 10, bottom: 0, right: 0)
padding: .init(top: 0, left: 10, bottom: 0, right: 0),
size: .init(width: 50, height: 0)
)
statusSwitch.sizeToFit()
statusSwitch.centerYInSuperview()
Expand Down

0 comments on commit 6932491

Please sign in to comment.