Bugfix FXIOS-11802 ⁃ [Autofill and Passwords] Saved Address bar in landscape mode displayed black margins#32667
Conversation
…ndscape mode displayed black margins
|
This pull request has conflicts when rebasing. Could you fix it @dicarobinho? 🙏 |
…s_padding # Conflicts: # firefox-ios/Client.xcodeproj/project.pbxproj
💪 Quality guardian1 tests files modified. You're a champion of test coverage! 🚀 🥇 Perfect PR sizeSmaller PRs are easier to review. Thanks for making life easy for reviewers! ✨ ✅ New file code coverageNo new file detected so code coverage gate wasn't ran. Client.app: Coverage: 39.61
Generated by 🚫 Danger Swift against 7f46e67 |
thatswinnie
left a comment
There was a problem hiding this comment.
While we now don't have black margins anymore, it's still not great. The background of the address should be extended to the edges of the screen just like for Save and Fill Addresses.
| } | ||
| } | ||
|
|
||
| struct DeviceOrientation: ViewModifier { |
There was a problem hiding this comment.
Why are we comparing width and height here to detect if the view is in landscape? Can't we use UIDeviceOrientation for that? This comparisson will probably not work correctly with stage manager on iPad.
Increased cells margins
| Image(StandardImageIdentifiers.Large.location) | ||
| .renderingMode(.template) | ||
| .padding(.leading, 16) | ||
| .modifier(ListItemIconPadding(isLandscape: UIDevice.current.orientation.isLandscape, |
There was a problem hiding this comment.
This is only getting called once when the view is shown. This should be updated when the device rotates.
|
|
||
| func makeBody(configuration: Configuration) -> some View { | ||
| configuration.label | ||
| .background(configuration.isPressed ? Color(theme.colors.layer1) : Color(theme.colors.layer2)) |
There was a problem hiding this comment.
Why did we get rid of the color change when the cell is tapped?
There was a problem hiding this comment.
@dicarobinho with this fix we lose the cell selection feedback I check the other autofill screen password and credit card and we have the cell selection feedback I agree with @thatswinnie we should find another solution were we could keep this behaviour
Adjusted padding for table header
…wift Co-authored-by: Winnie Teichmann <4530+thatswinnie@users.noreply.github.com>
| Image(StandardImageIdentifiers.Large.location) | ||
| Image(decorative: StandardImageIdentifiers.Large.location) | ||
| .renderingMode(.template) | ||
| .accessibilityHidden(true) |
There was a problem hiding this comment.
Nit: .accessibilityHidden(true) can be removed now that the image is decorative.
dragosb01
left a comment
There was a problem hiding this comment.
LGTM for automation changes
|
🚀 PR merged to |



📜 Tickets
Jira ticket
Github issue
💡 Description
Added padding where is necessary
🎥 Demos
Demo
📝 Checklist