Site Logo: Fix loader alignment issue#64919
Conversation
|
Size Change: +9 B (0%) Total Size: 1.78 MB
ℹ️ View Unchanged
|
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Nice one! Seems safe to me, but if Ramon has a chance to look, would appreciate it! |
ramonjd
left a comment
There was a problem hiding this comment.
Thanks for the fix!
Before
2024-09-02.12.53.43.mp4
After
2024-09-02.12.53.02.mp4
| { ( !! logoUrl || !! temporaryURL ) && logoImage } | ||
| { ! temporaryURL && ! logoUrl && ! canUserEdit && ( | ||
| <Placeholder className="site-logo_placeholder"> | ||
| { ( !! isLoading || |
There was a problem hiding this comment.
I think isLoading would be a sufficient check as the value is already a boolean
| { ( !! isLoading || | ||
| ( ! temporaryURL && ! logoUrl && ! canUserEdit ) ) && ( | ||
| <Placeholder className="site-logo_placeholder" withIllustration> | ||
| { !! isLoading && ( |
There was a problem hiding this comment.
Same here if you feel like changing, but optional as it's already in trunk.
There was a problem hiding this comment.
I have updated the condition. Thanks @ramonjd. Ill merge the PR now.
What?
Spinner alignment was off in
Site Logoblock when image is set and we reload the screen.Testing Instructions
Site LogoblockSite Logoblock, and Reload the pageScreenshots or screencast
|