-
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
Fix oversize label in no result side menu on iPad #19305
Fix oversize label in no result side menu on iPad #19305
Conversation
👋 @ipalm0423 - do you think we should list out the views that use |
Sure, I created a view list that is inspected on this PR. Also, I added some tests in the 41c4cb3. To test the |
0d8226d
to
41c4cb3
Compare
CI branch: #19333 |
WordPress/WordPressTest/ViewRelated/Views/Controllers/NoResultsViewControllerTests.swift
Outdated
Show resolved
Hide resolved
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 looks really good @ipalm0423! Thanks for being so thorough with your manual tests and screenshots. 🙇 The unit tests are great, too.
I noticed the margins on this view were a little tight. Do you think we should tweak this?
Yes, we could tweak the horizontal margin to make it look nice. I only found this spec, but not sure if it's the correct one. |
Typically we would pull in a designer for Figma designs, but how do you feel about adding just a few points of margin on the sides so it's not as snug? |
I tweaked the margin for Tested on the narrow key pages:
|
Great! Thanks for doing that. I've pushed the latest to the CI branch to run tests. 👍 |
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.
@ipalm0423 can we update RELEASE-NOTES.txt
for these changes? Thanks!
f05670e
to
ec96ae6
Compare
Generated by 🚫 dangerJS |
No, problem. Rebased to |
Latest has been pushed to CI branch. |
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.
LGTM @ipalm0423!
Fixes #19244 #19246
Description:
This PR fixes the issue where the labels are oversizing in its container view.
Root Cause:
In the xib
NoResults.storyboard
, the container view of the labels only has the width constraintWidth <= 360
, but it doesn't have a constraint related to its super view. This will let the labels go outside if its super view is smaller than the label's content.In this case, the side menu view only has
width == 320
. The container view will still go up to360
because it doesn't care about its super view size.Fix:
Test Step:
Notifications
orMy Site
tab.Regression Notes
add unitTest at 41c4cb3 for testing labels width in different sizes of the container.
PR submission checklist:
RELEASE-NOTES.txt
if necessary.