Changed layout for project detail page

This commit is contained in:
Marta Borgia Leiva 2026-02-11 11:09:54 +01:00
parent 69edc4e197
commit effcab5947
4 changed files with 99 additions and 54 deletions

View file

@ -33,8 +33,9 @@
background-color: #ffffff; background-color: #ffffff;
font-size: 12px; font-size: 12px;
color: #374151; color: #374151;
min-width: 140px; width: fit-content;
height: 32px; height: 32px;
text-align: center;
} }
.btn-remove { .btn-remove {

View file

@ -12,7 +12,7 @@
(ngModelChange)="onStatusChange($event)" (ngModelChange)="onStatusChange($event)"
> >
@for (status of statusOptions; track status) { @for (status of statusOptions; track status) {
<option [value]="status">{{ status.replace('_', ' ') }}</option> <option [value]="status">{{ status.replace('_', ' ').toUpperCase() }}</option>
} }
</select> </select>
<button class="btn-edit" type="button" aria-label="Edit task" (click)="onEdit()">Edit</button> <button class="btn-edit" type="button" aria-label="Edit task" (click)="onEdit()">Edit</button>

View file

@ -1,12 +1,19 @@
.content { .content {
padding: 40px; padding: 40px;
max-width: 1200px; width: clamp(70vw, 85vw, 90vw);
max-width: 80%;
margin: 0 auto; margin: 0 auto;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 0.6rem; gap: 0.6rem;
} }
@media (max-width: 600px) {
.content{
max-width: 95%;
}
}
.title h2 { .title h2 {
margin: 0 0 6px 0; margin: 0 0 6px 0;
font-size: 26px; font-size: 26px;
@ -153,13 +160,13 @@
} }
.collaborators-grid { .collaborators-grid {
display: grid; display: flex;
grid-template-columns: repeat(2, minmax(0, 1fr)); flex-direction: column;
gap: 16px; gap: 16px;
} }
.collaborators-grid--single { .collaborators-grid--single {
grid-template-columns: minmax(0, 1fr); flex-direction: column;
} }
.btn-add-task { .btn-add-task {
@ -205,6 +212,41 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 12px; gap: 12px;
flex: 1;
}
.cards-row {
width: 100%;
height: max-content;
display: flex;
flex-direction: row;
gap: 16px;
align-items: stretch;
}
.cards-row section {
height: auto;
width: 100%;
}
.cards-row .tasks-card {
display: flex;
flex-direction: column;
flex: 3;
}
.cards-row .collaborators-card {
flex: 1;
}
@media (max-width: 960px) {
.content {
width: 90vw;
}
.cards-row {
flex-direction: column;
}
} }
.loading p, .loading p,

View file

@ -17,6 +17,7 @@
</p> </p>
</section> </section>
<div class="cards-row">
<section class="tasks-card"> <section class="tasks-card">
<div class="tasks-header"> <div class="tasks-header">
<h4>Tasks</h4> <h4>Tasks</h4>
@ -69,6 +70,7 @@
Add collaborator Add collaborator
</button> </button>
</section> </section>
</div>
<section class="danger-zone"> <section class="danger-zone">
<div class="danger-header"> <div class="danger-header">