Gottwik / Enduro

Minimalistic, lean & mean, node.js cms
http://www.endurojs.com/
MIT License
690 stars 121 forks source link

nested elements get very small on admin panel #263

Closed CordlessWool closed 6 years ago

CordlessWool commented 6 years ago

I nested some elements, to let admin chose between some elements. But this result in very small elements in admin panel (see picture). I saw you using bootstraps and remove md-col, the nested elements get bigger and everything is big enough. It only do not fit the hole wide.

I tried a little bit to get it with css, it will not be perfect. Here is one example. Recognized, that the first element has no nest class.

image

Gottwik commented 6 years ago

This is a good point. There is a size termination type that will set the size of child items in a bootstrapy columny way.

Use it like this:

{
    $list_size: 12,
    list: [
        {
            stuff: 'something',
        }
    ]
}

I use this all the time when stuff is deeply or dynamically nested.

Let me know if this fixes stuff for you :-)

CordlessWool commented 6 years ago

Do not work. It gives me a SintaxError: Invalid or enecpected token. It do not accept the @

alexdr00 commented 6 years ago

Try replacing the '@' with a '$'. This way, it works for me.

Gottwik commented 6 years ago

sorry about the typo, thank you @anderalexdr for pointing it out.

CordlessWool commented 6 years ago

ok thank you, it work. I tried this also yesterday, but because of switching some time it had not work. Will it also be possible to set it on an templatitator type or global for all elements of the remplatitator?

Ezra-Siton-UIX commented 6 years ago

Please add this idea to the DOCS. I already know this but watching the Github enduro web assets. Very useful.

CordlessWool close this topic. Thanks!