Skip to content

Commit 0f178e1

Browse files
committed
fix(project-details/mobile): prevent overview, members, and recent tasks cards from overflowing viewport
1 parent f7e123f commit 0f178e1

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

src/app/features/projects/components/project-details/project-details.component.scss

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
display: flex;
33
flex-direction: column;
44
gap: 2rem;
5+
min-width: 0;
6+
max-width: 100%;
57
}
68

79
.project-details-header {
@@ -138,6 +140,8 @@
138140
gap: 2rem;
139141
height: clamp(34rem, 66vh, 46rem);
140142
align-items: stretch;
143+
min-width: 0;
144+
max-width: 100%;
141145
}
142146

143147
.project-details-grid__col--overview {
@@ -155,16 +159,23 @@
155159
.project-details-grid__col {
156160
display: flex;
157161
min-height: 0;
162+
min-width: 0;
163+
max-width: 100%;
158164
}
159165

160166
.project-details-grid__col p-card {
161167
flex: 1;
162168
display: block;
163169
min-height: 0;
170+
min-width: 0;
171+
width: 100%;
172+
max-width: 100%;
164173
}
165174

166175
:host ::ng-deep .details-card {
167176
height: 100%;
177+
width: 100%;
178+
max-width: 100%;
168179
}
169180

170181
:host ::ng-deep .details-card .p-card-body,
@@ -342,13 +353,22 @@
342353
justify-content: space-between;
343354
align-items: center;
344355
gap: 0.5rem;
356+
min-width: 0;
345357
}
346358

347359
.member-item__identity {
348360
display: inline-flex;
349361
align-items: center;
350362
gap: 0.55rem;
351363
font-weight: 500;
364+
min-width: 0;
365+
}
366+
367+
.member-item__identity span {
368+
min-width: 0;
369+
overflow: hidden;
370+
text-overflow: ellipsis;
371+
white-space: nowrap;
352372
}
353373

354374
.tasks-inline-error {
@@ -442,6 +462,9 @@
442462
.project-details-grid__col--tasks {
443463
grid-area: auto;
444464
grid-column: auto;
465+
min-width: 0;
466+
width: 100%;
467+
max-width: 100%;
445468
}
446469

447470
:host ::ng-deep .project-details-header__controls .p-dropdown {
@@ -460,5 +483,8 @@
460483

461484
:host ::ng-deep .project-details-grid__col--tasks .p-datatable-wrapper {
462485
overflow-x: auto;
486+
width: 100%;
487+
max-width: 100%;
488+
-webkit-overflow-scrolling: touch;
463489
}
464490
}

0 commit comments

Comments
 (0)