fix for underlined space between orcid icon and name (showAuthors component)
This commit is contained in:
parent
56d42bcd71
commit
e7720c283f
|
@ -12,17 +12,15 @@ import {properties} from "../../../../environments/environment";
|
||||||
selector: 'showAuthors',
|
selector: 'showAuthors',
|
||||||
template: `
|
template: `
|
||||||
<ng-template #author_template let-author="author" let-i="i">
|
<ng-template #author_template let-author="author" let-i="i">
|
||||||
<span *ngIf="(!author.orcid && !author.orcid_pending) || !testBrowser">
|
<span *ngIf="(!author.orcid && !author.orcid_pending) || !testBrowser" style="margin-right: 5px;">
|
||||||
{{author.fullName + ";"}} 
|
{{author.fullName + ";"}}
|
||||||
</span>
|
</span>
|
||||||
<a *ngIf="(author.orcid || author.orcid_pending) && testBrowser" class="uk-display-inline-block space uk-link-text">
|
<a *ngIf="(author.orcid || author.orcid_pending) && testBrowser" class="uk-flex-inline uk-flex-middle uk-link-text">
|
||||||
<span>
|
<img *ngIf="author.orcid" src="assets/common-assets/common/ORCIDiD_icon16x16.png" alt="orcid" loading="lazy" style="width:16px; height:16px; margin-right: 3px;">
|
||||||
<img *ngIf="author.orcid" src="assets/common-assets/common/ORCIDiD_icon16x16.png" alt="orcid" loading="lazy" style="width:16px; height:16px">
|
<img *ngIf="!author.orcid && author.orcid_pending" src="assets/common-assets/common/ORCIDiD_iconbw16x16.png" alt="orcid bw" loading="lazy" style="margin-right: 3px;">
|
||||||
<img *ngIf="!author.orcid && author.orcid_pending" src="assets/common-assets/common/ORCIDiD_iconbw16x16.png" alt="orcid bw" loading="lazy"> 
|
<span style="margin-right: 5px;">
|
||||||
<span>
|
{{author.fullName + ";"}}
|
||||||
{{author.fullName + ";"}} 
|
</span>
|
||||||
</span>
|
|
||||||
</span>
|
|
||||||
</a>
|
</a>
|
||||||
<div *ngIf="(author.orcid || author.orcid_pending) && testBrowser"
|
<div *ngIf="(author.orcid || author.orcid_pending) && testBrowser"
|
||||||
class="default-dropdown uk-margin-remove-top uk-dropdown orcid-dropdown"
|
class="default-dropdown uk-margin-remove-top uk-dropdown orcid-dropdown"
|
||||||
|
@ -74,10 +72,10 @@ import {properties} from "../../../../environments/environment";
|
||||||
</div>
|
</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
|
||||||
<div *ngIf="authors" class="uk-height-max-medium uk-overflow-auto uk-text-small uk-text-emphasis">
|
<div *ngIf="authors" class="uk-height-max-medium uk-overflow-auto uk-text-small uk-text-emphasis uk-flex uk-flex-wrap">
|
||||||
<span *ngFor="let author of authors.slice(0, viewAll?authors.length:authorsLimit) let i=index">
|
<ng-container *ngFor="let author of authors.slice(0, viewAll?authors.length:authorsLimit) let i=index">
|
||||||
<ng-container *ngTemplateOutlet="author_template; context: { author: author, i:i}"></ng-container>
|
<ng-container *ngTemplateOutlet="author_template; context: { author: author, i:i}"></ng-container>
|
||||||
</span>
|
</ng-container>
|
||||||
<span *ngIf="showAll && authors && authors.length > authorsLimit && !viewAll">
|
<span *ngIf="showAll && authors && authors.length > authorsLimit && !viewAll">
|
||||||
<a (click)="viewAllClick();">
|
<a (click)="viewAllClick();">
|
||||||
+{{authors.length-authorsLimit | number}} Authors
|
+{{authors.length-authorsLimit | number}} Authors
|
||||||
|
|
Loading…
Reference in New Issue