Describe the bug
When block within template part is focused two placeholder paragraph blocks appear at the end of it, causing the content below it to shift.
To reproduce
Steps to reproduce the behavior:
Screenshots
| Without focus | With focus |
|-|-|
| |
|
I'm pretty sure this has to do with the "default block appender area thing" which appears at the end of many different inner_blocks sections. Do we need to disable this in some views? I wonder what criteria we could use to do so.
+1 on Noah's comment about the default block appender. This is probably expected behavior when selecting a block that allows inserting inner blocks.
Note that 2 inserters are not added for the template part. In seedlet that template part is wrapped by a group block. So when you select the template part, it triggers this for both the group block and the template part. Adding 1 inserter at the bottom of the template part, and 1 at the bottom of the group block. There probably shouldn't be a group block around the template part in that template, and that would mean when selecting the template part only 1 inserter would appear, which is probably the core intention for allowing a user to add blocks? 馃
Noah and Addison are spot-on. Each inner block is rendering an inserter. When they are nested, it looks as if the inserters are duplicated, but in reality, they are inserters for different sets of inner blocks.
There was some discussion as a team around how best to approach this problem:
The last approach might be to leave everything as is.
Let's definitely not leave everything as is. There should be one inserter shown at a time in this scenario. #24836 looks like it's headed in the right direction. Nice work so far!
I'd love to get more feedback on this, but in the context of the site editor, is the paragraph block the most common tool? I'm not sure it is. I wonder if the "WYSIWYG" experience is the more important aspect in the site editor, so what if we placed an inserter button center aligned along the bottom border of the template part block? Possibly with some extra indication of where it would insert the block, but this could show up at the same time as the other inserter normally would, and would be a quick way to "insert at the end of the block" without inserting anything up front.
in the context of the site editor, is the paragraph block the most common tool?
@noahtallen I suppose that remains to be seen. It might be.
I wonder if the "WYSIWYG" experience is the more important aspect in the site editor, so what if we placed an inserter button center aligned along the bottom border of the template part block?
You mean like the inline inserter that shows up between blocks? Or maybe the group block?
Something more like that, yeah! So the "plus button" would be center aligned at the bottom of the template part without taking any extra vertical space, and inserting a block via that button would insert it at the end of the template part. Or something like that :) I personally feel like that would be a more straightforward interaction in this context
Most helpful comment
Let's definitely not leave everything as is. There should be one inserter shown at a time in this scenario. #24836 looks like it's headed in the right direction. Nice work so far!