-
Notifications
You must be signed in to change notification settings - Fork 342
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
Correctly set insets for primary button #7061
Correctly set insets for primary button #7061
Conversation
433a926
to
5ca4db7
Compare
5ca4db7
to
91e4df9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @pinkisemils)
ios/MullvadVPN/View controllers/Tunnel/DisconnectSplitButton.swift
line 45 at r2 (raw file):
} primaryButton.configuration?.contentInsets.leading += UIMetrics.DisconnectSplitButton.secondaryButton.width
Use the secondaryButtonSize
var declared above instead.
91e4df9
to
b104096
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r3, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @pinkisemils)
The size of the secondary button wasn't being used to adjust the insets of the disconnect button. I've gone and done did make it do it now. Feel free to reject or suggest a better solution.
b104096
to
7f09c7e
Compare
🚨 End to end tests failed. Please check the failed workflow run. |
🚨 End to end tests failed. Please check the failed workflow run. |
The size of the secondary button wasn't being used to adjust the insets of the disconnect button. I've gone and done did make it do it now. Feel free to reject or suggest a better solution.
Since the inset rectangle is RTL aware, I presume this change would work there too? Or do we not display the reconnect button on the left in RTL locales?
This change is