CodeForPhilly / laddr

http://codeforphilly.github.io/laddr/
MIT License
61 stars 34 forks source link

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

Open titlecharacter opened 9 years ago

titlecharacter commented 9 years ago

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.

themightychris commented 9 years ago

@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?

titlecharacter commented 9 years ago

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