Skip to content
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

Site logo looks off when editing site (templates, etc.) only #53148

Open
janboddez opened this issue Jul 29, 2023 · 5 comments
Open

Site logo looks off when editing site (templates, etc.) only #53148

janboddez opened this issue Jul 29, 2023 · 5 comments
Assignees
Labels
[Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") [Package] Block editor /packages/block-editor [Type] Bug An existing feature does not function as intended [Type] Enhancement A suggestion for improvement.

Comments

@janboddez
Copy link
Contributor

Description

The icon fills up all the space (while the "focus box" does not, see screenshot). On other screens, like the Edit Post one, it still looks like before, i.e., smaller. (Again, see screenshot.)

Actually, it looks OK on the "template selection" screen as well; it's the actual Site Editor screens (where you edit the templates, etc.) that are "different."

In fact, some of the icon is cut off along all four sides (it is hard to see).

I understand this may have been done on purpose and can actually look okay for certain images (photos with some of margin around the "main subject") but it came as quite a surprise.

Step-by-step reproduction instructions

I had a site logo set (using the Site Logo block, make sure "logo" is selected when saving, so that it actually updates), and then moved from WP 6.2 to 6.3. That's when the change occured.

Screenshots, screen recording, code snippet

image
The Site Editor situation is shown on the left, the "regular" block editor on the right. The left icon is way larger while the link's "focus outline" is not.

Environment info

  • WP 6.3-RC2
  • Firefox 115.0.3
  • Windows 10

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@jordesign jordesign added [Type] Bug An existing feature does not function as intended Needs Testing Needs further testing to be confirmed. [Block] Site Logo Affects the Site Logo Block labels Jul 31, 2023
@annezazu
Copy link
Contributor

Using 6.3 RC3, I'm seeing and replicating the following:

  • In the Site Editor, the logo is larger and has a smaller lift in terms of animation for pages and templates.
  • In the Post Editor, the logo is smaller and upon hovering, it has more room for animation.

TLDR: The animations and dimensions are different. I don't think this is intentional and I find the post editor animations to be better:

logo.mov

I'm going to add to the 6.3 board but it seems to be a good candidate for 6.3.x+ as it's not a major bug if it's not able to be quickly addressed.

@annezazu annezazu removed the Needs Testing Needs further testing to be confirmed. label Jul 31, 2023
@annezazu annezazu moved this to ❓ Triage in WordPress 6.3.x Editor Tasks Jul 31, 2023
@ndiego
Copy link
Member

ndiego commented Aug 1, 2023

I feel like this has been the case for a while, and I agree that the post Editor implementation is generally better for the logos I have used. Given that this is not a breaking change and RC3 is today, I think we should punt to 6.3.x

@annezazu annezazu moved this from ❓ Triage to 🐛 Punted to 6.3.1 in WordPress 6.3.x Editor Tasks Aug 1, 2023
@annezazu
Copy link
Contributor

annezazu commented Aug 1, 2023

Agreed. Thanks for double checking. Moving to 6.3.x.

@jordesign jordesign added [Type] Enhancement A suggestion for improvement. [Package] Block editor /packages/block-editor [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") and removed [Block] Site Logo Affects the Site Logo Block labels Aug 2, 2023
@kevin940726
Copy link
Member

I think this is an intentional design choice made in #48886. Perhaps @richtabor or @mtias could provide more details about it?

I believe the cut-off comes from the code here:

height: $grid-unit-80;
width: $grid-unit-80;

...where $grid-unit-80 is 64px, but the parent container's size is defined here:

height: $header-height;
width: $header-height;

which is 60px.

The inconsistency here is probably what makes it "look off".

@mtias
Copy link
Member

mtias commented Aug 3, 2023

Yeah, the post editor is not opening a sidebar so it already works a bit differently. It'll be reconciled as we reconcile other parts of the site / post editors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") [Package] Block editor /packages/block-editor [Type] Bug An existing feature does not function as intended [Type] Enhancement A suggestion for improvement.
Projects
No open projects
Development

No branches or pull requests

7 participants