-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #122 from szymonpoltorak/DEV-198-Projects-responsive
Dev 198 projects responsive
- Loading branch information
Showing
5 changed files
with
71 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 7 additions & 8 deletions
15
corn-frontend/src/app/pages/project-list/project-list.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
<app-toolbar [isOnProjectRoute]="true"></app-toolbar> | ||
|
||
<div class="project-list"> | ||
<mat-grid-list [cols]="cols"> | ||
@for(project of projects; track project) { | ||
<mat-grid-tile> | ||
<app-project [project]="project"></app-project> | ||
</mat-grid-tile> | ||
} | ||
</mat-grid-list> | ||
<div class="min-w-min min-h-min grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 gap-x-4 gap-y-8 p-4 "> | ||
@for(project of projects; track project) { | ||
<app-project [project]="project"></app-project> | ||
} | ||
</div> | ||
|
||
|
||
<button mat-fab color="primary" | ||
aria-label="Add new project" | ||
matTooltip="Add new project" | ||
(click)="openCreateProjectForm()" | ||
class="add-button"> | ||
<mat-icon>add</mat-icon> | ||
</button> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,9 @@ | |
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
@media(max-width: 440px) { | ||
font-size: 0.7em; | ||
} | ||
} | ||
|