Stretch container overview panels to fill remaining viewport height.
Release rolling / release (push) Has been cancelled
Release rolling / release (push) Has been cancelled
Make the overview tab body, card, and section grid grow with the details shell so Identity/Runtime/Network and related panels use empty vertical space instead of sitting in a short content-sized block.
This commit is contained in:
@@ -854,6 +854,37 @@ body {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Overview tab: stretch card + panels through remaining viewport height */
|
||||
#container-details-view #overview-pane.tab-pane.show.active {
|
||||
display: flex !important;
|
||||
flex-direction: column;
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#container-details-view #overview-pane .detail-tab-body {
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#container-details-view #overview-pane .detail-overview-card,
|
||||
#container-details-view #overview-pane .detail-section-card--flat {
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
#container-details-view #overview-pane .detail-overview-panels {
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
grid-template-rows: 1fr 1fr;
|
||||
}
|
||||
|
||||
#container-details-view .detail-fill-panel,
|
||||
#container-details-view #logs-pane > .detail-fill-panel,
|
||||
#container-details-view #terminal-pane > .detail-fill-panel {
|
||||
|
||||
+51
-6
@@ -3382,9 +3382,21 @@
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
/* Overview: fill remaining viewport; panels stretch (scroll only if needed) */
|
||||
#overview-pane.tab-pane.show.active {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
#overview-pane .detail-tab-body {
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.detail-tab-body.detail-scroll-body,
|
||||
@@ -3550,12 +3562,24 @@
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
/* Overview compact key/value grid */
|
||||
/* Overview compact key/value grid — card fills tab body height */
|
||||
.detail-overview-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
min-height: 0;
|
||||
flex: 1 1 auto;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#overview-pane .detail-section-card.detail-section-card--flat,
|
||||
#overview-pane .detail-overview-card {
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.detail-overview-hero {
|
||||
@@ -3664,25 +3688,31 @@
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
/* Multi-panel body */
|
||||
/* Multi-panel body — grows to fill leftover vertical space */
|
||||
.detail-overview-panels {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
grid-template-rows: 1fr 1fr;
|
||||
gap: 8px 10px;
|
||||
min-height: 0;
|
||||
flex: 1 1 auto;
|
||||
align-content: stretch;
|
||||
}
|
||||
|
||||
.detail-overview-section {
|
||||
min-width: 0;
|
||||
padding: 6px 8px;
|
||||
min-height: 0;
|
||||
height: 100%;
|
||||
padding: 8px 10px;
|
||||
border-radius: 8px;
|
||||
background: rgba(255, 255, 255, 0.02);
|
||||
border: 1px solid rgba(255, 255, 255, 0.05);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.detail-overview-section-title {
|
||||
margin: 0 0 4px;
|
||||
margin: 0 0 6px;
|
||||
font-size: 0.6875rem;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
@@ -3691,6 +3721,14 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.detail-overview-section .detail-kv-grid,
|
||||
.detail-overview-section .detail-chip-row,
|
||||
.detail-overview-section > .text-muted {
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.detail-overview-section-title i {
|
||||
@@ -3854,6 +3892,7 @@
|
||||
@media (max-width: 1100px) {
|
||||
.detail-overview-panels {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
grid-template-rows: repeat(3, 1fr);
|
||||
}
|
||||
.detail-metric-row {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
@@ -3861,8 +3900,14 @@
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
#overview-pane .detail-tab-body {
|
||||
overflow-y: auto;
|
||||
}
|
||||
.detail-overview-panels {
|
||||
grid-template-columns: 1fr;
|
||||
grid-template-rows: none;
|
||||
grid-auto-rows: auto;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
.detail-metric-row {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
|
||||
Reference in New Issue
Block a user