codenco-dev / nova-grid-system

Nova grid system for Laravel Nova
80 stars 33 forks source link

Use specific grid class on all fields #6

Closed bernhardh closed 4 years ago

bernhardh commented 4 years ago

I want to apply ->size("w-1/3") to all fields per default and only change it on the field itself if needed. Is there a way, to apply it to all fields, without adding it to every single one?

domthomas-dev commented 4 years ago

Hi, do you want apply it on all files (edit, show ?) and for all resources ? Or do you want choose default value for each resource ?

bernhardh commented 4 years ago

Good question. I think it would be enought, if I could pick a default value for all resources, but it should be possible to distinguish between edit and show. So for example, all edit views should get w-1/2 and all detail pages should getw-1/3 by default.

Btw. thank you for your package. One of the things I hate most on nova is its extremly space wasting design. On ressources with more then 7-8 fields, without a grid system, you will have to scroll endless!

domthomas-dev commented 4 years ago

@bernhardh Can you look that ?

https://github.com/codenco-dev/nova-grid-system/blob/1.0.0/README.md#play-with-default-values

your feedback are welcome

bernhardh commented 4 years ago

Thanks! Thats great and what I was looking for.