tweaks for manage profile - stakeholder cards

This commit is contained in:
Alex Martzios 2022-04-06 16:27:16 +03:00
parent 84c155bb2e
commit a98a134a91
5 changed files with 38 additions and 59 deletions

View File

@ -1,21 +0,0 @@
.uk-card {
min-height: 230px;
}
.uk-card-body {
padding-top: 75px;
}
.uk-card-default .name {
margin-left: auto;
margin-right: auto;
}
.uk-card-default .uk-card-title .logo {
display: inline-block;
max-width: 80%;
}
.uk-card-default .uk-card-title .logo > img {
max-height: 60px;
}

View File

@ -34,11 +34,11 @@
<div *ngIf="loading" class="uk-margin-medium-top uk-padding-large">
<loading></loading>
</div>
<div *ngIf="!loading">
<div *ngIf="!loading" class="uk-section" uk-height-match="target: .titleContainer; row: false">
<div uk-height-match="target: .logoContainer; row: false">
<div *ngIf="tab != 'profiles' && isCurator()" class="uk-margin-medium-top">
<h6 class="uk-text-bold">Profile Templates</h6>
<div class="uk-grid uk-child-width-1-4@xl uk-child-width-1-3@l uk-child-width-1-2@m uk-grid-match" uk-grid
uk-height-match="target: .name;">
<div class="uk-grid uk-child-width-1-4@xl uk-child-width-1-3@l uk-child-width-1-2@m uk-grid-match" uk-grid>
<ng-template ngFor [ngForOf]="displayDefaultStakeholders" let-stakeholder let-i="index">
<ng-container *ngTemplateOutlet="stakeholderBox; context: {stakeholder:stakeholder}"></ng-container>
</ng-template>
@ -67,6 +67,7 @@
</div>
</div>
</div>
</div>
</div>
<ng-template #stakeholderBox let-stakeholder="stakeholder">
@ -117,13 +118,13 @@
</div>
</div>
<a class="uk-display-block uk-text-center" [routerLink]="'/admin/' + stakeholder.alias">
<div class="uk-h6 uk-margin-remove multi-line-ellipsis lines-2">
<div class="titleContainer uk-h6 uk-margin-remove multi-line-ellipsis lines-2">
<p *ngIf="stakeholder.name" class="uk-margin-remove">
{{stakeholder.name}}
</p>
</div>
<div *ngIf="stakeholder.logoUrl" class="logo uk-margin-top">
<img [src]="stakeholder | logoUrl" class="uk-blend-multiply" style="max-height: 200px;">
<div class="logoContainer uk-margin-medium-top uk-flex uk-flex-column uk-flex-center uk-flex-middle">
<img *ngIf="stakeholder.logoUrl" [src]="stakeholder | logoUrl" class="uk-blend-multiply" style="max-height: 100px;">
</div>
</a>
</div>

View File

@ -22,8 +22,7 @@ declare var UIkit;
@Component({
selector: 'home',
templateUrl: "./manageStakeholders.component.html",
styleUrls: ['manageStakeholders.component.css']
templateUrl: "./manageStakeholders.component.html"
})
export class ManageStakeholdersComponent implements OnInit, OnDestroy {

@ -1 +1 @@
Subproject commit 3af4eabea7b909829eb59bac7de506fe9eefde86
Subproject commit acca43d45a4c95c0ad3426077c72b8fb08ac6e61

@ -1 +1 @@
Subproject commit ff4d2d2f957196d97d2bba86decd21153899e59b
Subproject commit 8b322abc3f960c9b8ca29441f80c0184ed7e8a39