-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Refactor: Remove flipInsetsForRightToLeftLayoutDirection #23811
Conversation
Generated by 🚫 Danger |
@@ -385,7 +385,6 @@ private extension CommentContentTableViewCell { | |||
replyButton?.setTitleColor(Style.reactionButtonTextColor, for: .normal) | |||
replyButton?.setImage(Style.replyIconImage, for: .normal) | |||
replyButton?.addTarget(self, action: #selector(replyButtonTapped), for: .touchUpInside) | |||
replyButton?.flipInsetsForRightToLeftLayoutDirection() |
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.
This had no effect because the buttons are vertical.
The layout is a bit broken. I reported it here #23812.
![Screenshot 2024-11-14 at 4 19 13 PM](https://private-user-images.githubusercontent.com/1567433/386373505-b8bb9ee4-8908-4c1c-8726-d14f50821b1c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5OTM2NzcsIm5iZiI6MTczODk5MzM3NywicGF0aCI6Ii8xNTY3NDMzLzM4NjM3MzUwNS1iOGJiOWVlNC04OTA4LTRjMWMtODcyNi1kMTRmNTA4MjFiMWMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDhUMDU0MjU3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Njc1ZmQ2ZDMwNjdjNmMxNjgyOGNmZjk4OWE4MTY0NzY4NWFhYzkzMWJjMmMzODg2YzhkMTNjMWNjZjE3Mjc5MCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.4pSRRdxIW6MS69lEwSuyrCgLXhEqPYGaMK-8-sxOj04)
@@ -376,17 +374,6 @@ class ReaderDetailToolbar: UIView, NibLoadable { | |||
configureActionButtonStyle(saveForLaterButton) | |||
} | |||
|
|||
private func adjustInsetsForTextDirection() { |
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.
@@ -78,7 +78,6 @@ class JetpackButton: CircularImageButton { | |||
imageEdgeInsets = Appearance.iconInsets | |||
contentEdgeInsets = Appearance.contentInsets | |||
imageView?.contentMode = .scaleAspectFit | |||
flipInsetsForRightToLeftLayoutDirection() |
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.
Don't have screenshots, but it should be OK.
I'm planning to remove the remaining usages of JetpackButton
next week together with sone of the Jetpack migration code.
|
App Name | ![]() |
|
Configuration | Release-Alpha | |
Build Number | pr23811-9772eb1 | |
Version | 25.4.2 | |
Bundle ID | org.wordpress.alpha | |
Commit | 9772eb1 | |
App Center Build | WPiOS - One-Offs #11053 |
|
App Name | ![]() |
|
Configuration | Release-Alpha | |
Build Number | pr23811-9772eb1 | |
Version | 25.4.2 | |
Bundle ID | com.jetpack.alpha | |
Commit | 9772eb1 | |
App Center Build | jetpack-installable-builds #10093 |
This PR fixes a few warnings.
To test:
Regression Notes
Potential unintended areas of impact
What I did to test those areas of impact (or what existing automated tests I relied on)
What automated tests I added (or what prevented me from doing so)
PR submission checklist:
RELEASE-NOTES.txt
if necessary.Testing checklist: