Skip to content

Commit 96729b9

Browse files
committed
fix(dashboard): enforce stable 50-50 middle-row card widths and prevent heatmap-driven layout expansion
1 parent fc37634 commit 96729b9

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

src/app/features/dashboard/components/dashboard/dashboard.component.scss

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,27 @@ $grid-gap: 2rem;
2222
grid-template-columns: 1fr;
2323

2424
@media (min-width: $md) {
25-
grid-template-columns: repeat(2, 1fr);
25+
grid-template-columns: repeat(2, minmax(0, 1fr));
2626
}
2727

2828
@media (min-width: $lg) {
29-
grid-template-columns: repeat(4, 1fr);
29+
grid-template-columns: repeat(4, minmax(0, 1fr));
3030
}
3131
}
3232

3333
.dashboard-row-2 {
3434
grid-template-columns: 1fr;
3535

3636
@media (min-width: $md) {
37-
grid-template-columns: repeat(2, 1fr);
37+
grid-template-columns: repeat(2, minmax(0, 1fr));
3838
}
3939
}
4040

41+
.dashboard-row-2 > * {
42+
min-width: 0;
43+
max-width: 100%;
44+
}
45+
4146
p-card {
4247
display: flex;
4348
flex-direction: column;
@@ -250,6 +255,10 @@ $grid-gap: 2rem;
250255
::ng-deep .dashboard-heatmap-card app-activity-heatmap {
251256
flex: 1 1 auto;
252257
min-height: 0;
258+
min-width: 0;
259+
width: 100%;
260+
max-width: 100%;
261+
overflow: hidden;
253262
}
254263

255264
::ng-deep .dashboard-panel-card--compact .p-card {

0 commit comments

Comments
 (0)