Repository navigation
Vertical relation manager tabs on resource pages #20965
dieterwarson
started this conversation in
Ideas
Replies: 1 comment 1 reply
|
I’d prefer not to add another page-level method for this, since the existing I’ve merged the CSS fix in #20986 and brought it into the 4.x, 5.x, and 6.x branches. It prevents uncontained vertical tab navigation from stretching to the height of the content, while preserving the full-height divider for contained tabs. This will be included in upcoming releases. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'd like to propose a small addition, and I'm happy to send the PR (I have it ready against
5.x).The problem
Relation manager tabs (and combined content + relation manager tabs) are always horizontal. Records with several relation managers, or long tab labels, get a crowded tab bar. Vertical tabs work much better there, but today you have to override
getRelationManagersContentComponent(), call the parent, check that it returned aTabsinstance, and then call->vertical()on it.The proposal
Add a page method, like the existing
hasCombinedRelationManagerTabsWithContent():The default is
false, so nothing changes for existing apps. It works on Edit, View and ManageRelatedRecords pages, for both separate and combined tabs.A related CSS fix
Relation manager tabs use
contained(false), which draws the tab nav as a card. Withvertical(), the nav sits in a flex row with the defaultalign-items: stretch, so it stretches to the full height of the content next to it. You end up with a tall, mostly empty card. The fix only affects vertical tabs that aren't contained, so contained vertical tabs keep their full-height divider:Credits to @JonathanRixhon for the css fix
Before:

After:
All reactions