Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Pairing switch breaks layout on sensor settings #2012 #2016

Merged
merged 1 commit into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading