From 7676ffe7378e8a98338417ff22a55dfecd64b130 Mon Sep 17 00:00:00 2001 From: giulio-leone Date: Wed, 25 Mar 2026 11:45:59 +0100 Subject: [PATCH 1/2] feat(tab): add fullHeight input for vertical space occupation Add a fullHeight boolean input to ItTabContainerComponent that makes the component occupy the full available vertical height. When enabled: - Host element gets height:100%, d-flex, and appropriate flex-direction - Row wrapper gets h-100 for vertical layout or flex-grow-1 for horizontal - Tab content and active pane get flex-grow-1 for proper space distribution - Nav tabs list gets h-100 in vertical mode for full-height sidebar Closes #574 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../tab-container.component.html | 13 +- .../tab-container.component.spec.ts | 131 ++++++++++++++++++ .../tab-container/tab-container.component.ts | 12 ++ 3 files changed, 153 insertions(+), 3 deletions(-) diff --git a/projects/design-angular-kit/src/lib/components/core/tab/tab-container/tab-container.component.html b/projects/design-angular-kit/src/lib/components/core/tab/tab-container/tab-container.component.html index af19f79c5..aa73e6d81 100644 --- a/projects/design-angular-kit/src/lib/components/core/tab/tab-container/tab-container.component.html +++ b/projects/design-angular-kit/src/lib/components/core/tab/tab-container/tab-container.component.html @@ -2,7 +2,9 @@ [class.row]="vertical" [class.flex-row-reverse]="inverted && vertical" [class.d-flex]="inverted && !vertical" - [class.flex-column-reverse]="inverted && !vertical"> + [class.flex-column-reverse]="inverted && !vertical" + [class.h-100]="fullHeight && vertical" + [class.flex-grow-1]="fullHeight && !vertical">
@for (tab of tabs; track tab.id; let i = $index) {