-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Layout jumps when selecting an image #44359
Comments
This comment was marked as resolved.
This comment was marked as resolved.
For images, I'd probably move "add caption" right after the alignment icon since it's pretty important. Would also be good to explore a caption button overlaid on top of the image canvas, just to exhaust all options. |
Updated order of buttons in the image block toolbar: Overlay buttons are tricky. Not just designwise, but mostly I feel like it just makes me wonder why it isn't in the block toolbar. Mainly tricky is that the button probably has to remain an icon button, as we can't know how small the image is, so that it would fit a text label: |
I like it in the toolbar, where it can behave like a toggle. |
So if we have a toolbar button, will be a toggle to remove |
I think it would be toggled off by default. Toggling it on reveals the caption input. It would be nice if the block could "remember" the caption if one was added. That way if you toggle it off by accident you can toggle it on again in one click rather than having to type the caption text again. Here's the SVG:
|
I don't think it should be a toggle. If a caption is present, there should be no button. The toolbar button should only show when the caption is empty. |
Won't it be a bit strange if the button just disappears when you click it? 🤔 I guess we can figure it out in the PR :) |
Feels pretty good to me. |
Ah, it's disabled on click and hidden thereafter. That works! |
Most on-select layout shifts have been removed from the editor, but the image caption and quote citation fields still cause a jump. Let's move these field into a toolbar button, to avoid layout shifts.
The toolbar button should only show when the caption is empty.
Issue updated Oct 14.
Initial proposal
![jump](https://user-images.githubusercontent.com/846565/191715985-0b294c8d-a297-45b2-a3f1-c5ab6d41c541.gif)Blocks beneath Image will 'jump' when the image is selected, owing to the requirement for the 'Add caption' input to appear. This can be disorienting.
The same thing happens for the Citation element in the Blockquote block.
Let's explore ways we can mitigate this.
The text was updated successfully, but these errors were encountered: