Fix tab content projection on Deployments and Releases pages

Both pages used self-closing <stella-page-tabs ... /> with content rendered
as sibling elements OUTSIDE the component. This caused an empty tabpanel
with content floating below on the page background.

Fix: wrap tab-conditional content INSIDE <stella-page-tabs>...</stella-page-tabs>
so it projects into the tabpanel slot. Now the tab bar and its content share
the same visual container with the correct border and background.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
master
2026-03-27 18:31:43 +02:00
parent a975a03159
commit 0c1436aba8
2 changed files with 3 additions and 2 deletions

View File

@@ -170,7 +170,6 @@ function deriveOutcomeIcon(status: string): string {
ariaLabel="Run list views" ariaLabel="Run list views"
> >
<app-page-action-outlet tabBarAction /> <app-page-action-outlet tabBarAction />
</stella-page-tabs>
@if (viewMode() === 'approvals') { @if (viewMode() === 'approvals') {
<!-- Approvals tab content --> <!-- Approvals tab content -->
@@ -299,6 +298,7 @@ function deriveOutcomeIcon(status: string): string {
} }
} }
} }
</stella-page-tabs>
</section> </section>
`, `,
styles: [` styles: [`

View File

@@ -81,7 +81,7 @@ export interface PipelineRelease {
</header> </header>
<stella-page-tabs [tabs]="releaseTabs" [activeTab]="activeTab()" urlParam="tab" <stella-page-tabs [tabs]="releaseTabs" [activeTab]="activeTab()" urlParam="tab"
(tabChange)="activeTab.set($event)" ariaLabel="Releases tabs" /> (tabChange)="activeTab.set($event)" ariaLabel="Releases tabs">
@if (activeTab() === 'releases') { @if (activeTab() === 'releases') {
<!-- Pipeline --> <!-- Pipeline -->
@@ -265,6 +265,7 @@ export interface PipelineRelease {
@if (activeTab() === 'versions') { @if (activeTab() === 'versions') {
<app-release-list [embedded]="true" /> <app-release-list [embedded]="true" />
} }
</stella-page-tabs>
<app-confirm-dialog #approveConfirm <app-confirm-dialog #approveConfirm
title="Approve Release" title="Approve Release"