laddr icon indicating copy to clipboard operation
laddr copied to clipboard

contentBlock can't be edited if it's the only thing in a <section>

Open titlecharacter opened this issue 9 years ago • 2 comments

If a section contains a contentBlock but nothing else, there's no way to edit the contentBlock to seed it with actual content - the empty contentBlock editing box doesn't appear.

If the section contains text, the dashed yellow lines appear, and can be clicked on to edit. Once the contentBlock is non-empty, it shows up fine.

titlecharacter avatar Aug 16 '15 14:08 titlecharacter

@bennovack there should be a 1em min-height rule on the contentBlock div that gives you a click target even when it's empty, is that in the CSS but not working for some reason?

themightychris avatar Aug 16 '15 14:08 themightychris

It doesn't render at all if the section has nothing at all in it. ie:

foo {contentBlock "name"}

causes a min-height contentBlock to render.

{contentBlock "name"}

nothing appears at all, if the contentBlock has nothing in it.

For example, see current state of http://laddr-v2-ben.poplar.phl.io/bigscreen

titlecharacter avatar Aug 16 '15 15:08 titlecharacter