statamic / ideas

💡Discussions on ideas and feature requests for Statamic
https://statamic.dev
31 stars 1 forks source link

Hide empty computed fields #949

Closed aerni closed 1 year ago

aerni commented 1 year ago

I've got this computed field that shows all articles of an author. It looks a little lost if there are no articles:

Bildschirmfoto 2023-02-08 um 11 08 13

Maybe we should hide computed fields if they have no value. Not sure about the best approach here.

jasonvarga commented 1 year ago

This is more of an issue about the entries fieldtype's style when in read only mode.

The same thing happens if you have an entries field set to read only and it has nothing selected.

If your computed field was a text fieldtype, it would be a read only text box, which makes plenty of sense.

If you want to make an issue about that, feel free. But we shouldn't hide empty computed fields.