From 5cd670287846a4057b1bc22f64bce2f447bbd074 Mon Sep 17 00:00:00 2001
From: Sagar Gopale
Date: Mon, 9 Mar 2026 19:11:46 +0530
Subject: [PATCH] mgr/dashboard: Footer actions shift upward instead of staying
pinned at modal bottom in NVMe/TCP subsystem create wizard
Fixes: https://tracker.ceph.com/issues/75409
Signed-off-by: Sagar Gopale
---
.../nvmeof-subsystem-step-2.component.html | 4 ++--
.../tearsheet/tearsheet.component.scss | 23 ++++++++++++++++---
.../tearsheet/tearsheet.component.ts | 6 +++--
3 files changed, 26 insertions(+), 7 deletions(-)
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-subsystems-form/nvmeof-subsystem-step-2/nvmeof-subsystem-step-2.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-subsystems-form/nvmeof-subsystem-step-2/nvmeof-subsystem-step-2.component.html
index 40e4afd55a1..b43d878f8cc 100644
--- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-subsystems-form/nvmeof-subsystem-step-2/nvmeof-subsystem-step-2.component.html
+++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-subsystems-form/nvmeof-subsystem-step-2/nvmeof-subsystem-step-2.component.html
@@ -60,7 +60,7 @@
class="form-item">
Add host manually
+ i18n>Add hosts
} @else {
.tearsheet-content {
+ flex: 1 1 auto;
+ min-height: 0;
+ max-block-size: none;
+}
+
//FOOTER
.tearsheet-footer {
border-top: 1px solid var(--cds-border-subtle);
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/tearsheet/tearsheet.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/tearsheet/tearsheet.component.ts
index 99fdbfa1f20..4aa5bc33934 100644
--- a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/tearsheet/tearsheet.component.ts
+++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/tearsheet/tearsheet.component.ts
@@ -10,7 +10,8 @@ import {
DestroyRef,
OnDestroy,
ChangeDetectionStrategy,
- TemplateRef
+ TemplateRef,
+ ViewEncapsulation
} from '@angular/core';
import { FormBuilder } from '@angular/forms';
import { Step } from 'carbon-components-angular';
@@ -54,7 +55,8 @@ formgroup: CdFormGroup;
standalone: false,
templateUrl: './tearsheet.component.html',
styleUrls: ['./tearsheet.component.scss'],
- changeDetection: ChangeDetectionStrategy.OnPush
+ changeDetection: ChangeDetectionStrategy.OnPush,
+ encapsulation: ViewEncapsulation.None
})
export class TearsheetComponent implements OnInit, AfterViewInit, OnDestroy {
@Input() title!: string;
--
2.47.3