[Connect | Trunk]: Fix height of my communities cards
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@58581 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
f12abdcd8d
commit
adceffbe11
|
@ -9,14 +9,6 @@
|
|||
<span>Private</span>
|
||||
</div>
|
||||
</div>
|
||||
<!--<div *ngIf="community.status =='manager'"
|
||||
class="uk-card-badge private-card-badge uk-width-1-3 uk-position-top-left uk-text-small uk-text-center">
|
||||
Private
|
||||
</div>
|
||||
<div *ngIf="community.isSubscribed"
|
||||
class="uk-position-top-right uk-card-badge portal-card-badge uk-width-1-2 uk-text-small uk-text-center">
|
||||
<span>Subscribed</span>
|
||||
</div>-->
|
||||
<div class="uk-card-media-top uk-padding uk-padding-remove-vertical uk-flex uk-flex-center uk-flex-middle">
|
||||
<a *ngIf="directLink" [href]="getCommunityPageUrl()" target="_blank">
|
||||
<div class="community">
|
||||
|
@ -53,7 +45,7 @@
|
|||
</div>
|
||||
<div class="uk-card-body uk-padding-small uk-padding-remove-horizontal uk-padding-remove-top uk-margin-small-top uk-margin-bottom">
|
||||
<div class="uk-text-center uk-text-bold " [ngClass]="(showDescription)?'uk-margin-bottom':''">
|
||||
<a *ngIf="directLink" [href]="getCommunityPageUrl()" class="color uk-text-bold" target="_blank">
|
||||
<a *ngIf="directLink" [href]="getCommunityPageUrl()" class="color uk-text-bold" target="_blank" [class.uk-text-small]="smallTitle">
|
||||
<span *ngIf="community.title">
|
||||
{{community.title.slice(0, thresholdTitle)}}
|
||||
<span *ngIf="community.title.length > thresholdTitle">...</span>
|
||||
|
@ -63,7 +55,7 @@
|
|||
<span *ngIf="community.shortTitle.length > thresholdTitle">...</span>
|
||||
</span>
|
||||
</a>
|
||||
<a *ngIf="!directLink" (click)="confirmModalOpen()" class="color uk-text-bold">
|
||||
<a *ngIf="!directLink" (click)="confirmModalOpen()" class="color uk-text-bold" [class.uk-text-small]="smallTitle">
|
||||
<span *ngIf="community.title">
|
||||
{{community.title.slice(0, thresholdTitle)}}
|
||||
<span *ngIf="community.title.length > thresholdTitle">...</span>
|
||||
|
|
|
@ -14,6 +14,7 @@ import {LocalStorageService} from "../../openaireLibrary/services/localStorage.s
|
|||
export class BrowseCommunityComponent {
|
||||
@Input() public community: CommunityInfo = null;
|
||||
@Input() public showDescription: boolean = true;
|
||||
@Input() public smallTitle: boolean = false;
|
||||
@ViewChild('AlertModal') modal;
|
||||
|
||||
public hiddenMessage: string = "Community is hidden to registered users. It is visible only to users that have privileges to manage community; delay: 100";
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<div *ngIf="!loading" class="uk-container uk-container-large">
|
||||
<h2 class="uk-text-center uk-text-bold">My Communities</h2>
|
||||
<div *ngIf="managerOfCommunities.length > 0 || subscriberOfCommunities.length > 0"
|
||||
class="uk-child-width-1-1@s uk-child-width-1-2@m uk-flex uk-flex-middle" uk-grid uk-height-match="target: .community; row: false">
|
||||
class="uk-child-width-1-1@s uk-child-width-1-2@m uk-flex uk-flex-middle" uk-grid uk-height-match="target: .communityCard; row: false">
|
||||
<div>
|
||||
<div *ngIf="managerOfCommunities.length > 0" class="uk-grid">
|
||||
<h5 class="uk-width-1-1 uk-text-bold">You are managing</h5>
|
||||
|
@ -29,7 +29,7 @@
|
|||
<div *ngFor="let community of managerOfCommunities.slice(0,3); let i = index">
|
||||
<div class="uk-padding-small uk-card uk-card-default uk-card-small communityCard"
|
||||
title="{{community.description}}">
|
||||
<browse-community [community]=community [showDescription]=false></browse-community>
|
||||
<browse-community [community]=community [smallTitle]="true" [showDescription]=false></browse-community>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -56,7 +56,7 @@
|
|||
<div *ngFor="let community of subscriberOfCommunities.slice(0,3); let i = index">
|
||||
<div class="uk-padding-small uk-card uk-card-small uk-card-default communityCard"
|
||||
[attr.uk-tooltip]="((community.description) ? ('title: '+ community.description + '; pos: bottom-right') : 'cls: uk-invisible')">
|
||||
<browse-community [community]=community [showDescription]=false></browse-community>
|
||||
<browse-community [community]=community [smallTitle]="true" [showDescription]=false></browse-community>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -93,7 +93,7 @@
|
|||
<div [class]="(researchCommunities.length <= 5 ? ' uk-margin-medium-bottom' : '')">
|
||||
<div
|
||||
class="uk-grid-match uk-grid-medium uk-child-width-1-5@m uk-child-width-1-2 uk-text-center"
|
||||
uk-grid uk-height-match=".community">
|
||||
uk-grid uk-height-match=".community;">
|
||||
<div *ngFor="let community of researchCommunities.slice(0, 5); let i = index">
|
||||
<div class="uk-padding-small uk-card uk-card-default communityCard">
|
||||
<browse-community [community]=community></browse-community>
|
||||
|
|
Loading…
Reference in New Issue