Open techpet opened 2 years ago
Hi techpet!
Thanks for your interest in Contember Admin and for taking your time to open this issue!
This is expected behaviour, we believe it's the better default. I agree that on the presented screenshot it looks odd - this is usable, especially on long pages - e.g. article edit page, where there is the content of the article and below there is some setting for SEO / meta tags.
There are several ways you can achieve the behaviour you want:
<EditPage rendererProps={{ afterTitle: <>Buttons here</> }}
.DataBindingProvider
, EntitySubTree
and LayoutRenderer
in a custom stateful component. I am converting this issue into a feature request for the behaviour you expected.
Thank you for your reply @VojtaStanek! Indeed, one can achieve this functionality with the very reasonable ways that you have proposed. It's great that Contember has all the flexibility that allows you to think out of the box and apply several different solutions to a problem!
In my mind, the default expected behaviour of the headings (tabs) placed on top with the ability to change the active one would be either to navigate you to hidden content or work as anchor links to the related Section content. But again, that might be just me thinking of this as the default behaviour.
Expected behavior: Section component should wrap it's children inside a Tab and show/hide them when the tab is active.
Issue: Children components are displayed inline, just after previous section children components.
Case: Screenshot from cider-house example: