Skip to content

Commit

Permalink
fix: [community/profiles] corrige le statut 'active' des éléments du …
Browse files Browse the repository at this point in the history
…menu

* ajuste les tailles des cards skeletons
* modifie l'icône associé au menu jobs de l'admin pour correspondre à celui de la card counter
  • Loading branch information
matthieuaudemard committed May 7, 2023
1 parent 525fb24 commit e239b79
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class AdminPageComponent {
{
label: 'Offres',
routerLink: `/${Univers.ADMIN.url}/jobs`,
icon: 'fas fa-newspaper',
icon: 'fas fa-briefcase',
routerLinkActiveOptions: {exact: true}
},
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<app-profile-card-base>
<ng-container avatar>
<p-skeleton size="5.5rem" borderRadius="0.375rem"></p-skeleton>
<div style="height: 6px"></div>
</ng-container>
<ng-container heading>
<p-skeleton width="95%" height="1.456rem"></p-skeleton>
</ng-container>
<ng-container options>
<p-skeleton width="7.6rem" height="1.80rem" styleClass="me-1"></p-skeleton>
<p-skeleton width="2.1rem" height="1.80rem" styleClass="me-1"></p-skeleton>
</ng-container>
</app-profile-card-base>
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<div class="row col-lg-8 col-xl-9 mt-4 mt-lg-0 m-0 p-0 align-items-baseline">
<ng-container *ngIf="!loading; else templateLoading">
<p *ngIf="!profiles.length">Aucun résultat</p>
<p *ngIf="!profiles.length" class="pt-2">Aucun résultat</p>
<div
*ngFor="let profile of profiles; trackBy: trackByUsername"
class="col-md-6 col-xl-6 px-0 px-md-2 profile-card"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,13 @@ export class ProfileListPageComponent implements OnInit, OnDestroy {
loading = true;
selectedItemMenuCode: ProfileMenuCode;
menuItems: MenuItem[] = ProfileMenuEnum.values()
.map((item: ProfileMenuEnum) => {
const menuItem = {
.map((item: ProfileMenuEnum) => ({
id: item.code,
label: item.label,
queryParams: item.filter ? {filter: item.filter} : null,
routerLink: item.url,
routerLinkActiveOptions: {queryParams: 'subset'}
} as MenuItem;
return item.filter ? {...menuItem, queryParams: {filter: item.filter}} : menuItem;
});
routerLinkActiveOptions: {queryParams: item.code === ProfileMenuCode.ALL ? 'exact' : 'subset', exact: item.code === ProfileMenuCode.ALL}
} as MenuItem));

private onDestroySubject = new Subject<void>();
private onlyFriendRequestMenuItem: MenuItem;
Expand Down

0 comments on commit e239b79

Please sign in to comment.