forked from DSpace/dspace-angular
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged in DSC-1383-davide (pull request DSpace#1224)
[DSC-1383] Fix metrics layout and responsivity Approved-by: Andrea Barbasso
- Loading branch information
Showing
14 changed files
with
130 additions
and
126 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
...out-matrix/cris-layout-box-container/boxes/metrics/cris-layout-metrics-box.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,10 +1,10 @@ | ||
<div class="{{box.style}} w-100"> | ||
<div class="container" *ngIf="metricRows"> | ||
<div [class]="box.style" class="w-100"> | ||
<div *ngIf="metricRows"> | ||
<!-- PRINT ROWS --> | ||
<div ds-metric-row | ||
*ngFor="let metricRow of (metricRows | async)" | ||
[metricRow]="metricRow" | ||
class="d-flex flex-wrap gap-3 mb-3"> | ||
class="d-flex flex-row flex-wrap align-items-center gap-3"> | ||
</div> | ||
</div> | ||
</div> |
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
34 changes: 15 additions & 19 deletions
34
src/app/shared/metric/metric-altmetric/metric-altmetric.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,23 +1,19 @@ | ||
<div class="row d-flex align-items-center" | ||
<div class="d-flex flex-nowrap flex-row gapx-3 align-items-center pr-3" | ||
*ngIf="!failed && !(isHidden$ | async) && (remark | dsListMetricProps: 'data-badge-enabled':isListElement == true)"> | ||
<div class="col-5 text-left"> | ||
<div #metricChild> | ||
<div | ||
class="altmetric-embed" | ||
[attr.data-hide-no-mentions]="remark | dsListMetricProps : 'data-hide-no-mentions' : isListElement" | ||
[attr.data-hide-less-than]="remark | dsListMetricProps : 'data-hide-less-than' : isListElement" | ||
[attr.data-badge-details]="remark | dsListMetricProps : 'data-badge-details' : isListElement" | ||
[attr.data-badge-type]="remark | dsListMetricProps : 'badgeType' : isListElement" | ||
[attr.data-badge-popover]="remark | dsListMetricProps : 'popover' : isListElement" | ||
[attr.data-doi]="remark | dsListMetricProps : 'doiAttr' : isListElement" | ||
[attr.data-pmid]="remark | dsListMetricProps : 'pmidAttr' : isListElement" | ||
[attr.data-link-target]="remark | dsListMetricProps : 'data-link-target' : isListElement" | ||
></div> | ||
</div> | ||
<div #metricChild> | ||
<div | ||
class="altmetric-embed" | ||
[attr.data-hide-no-mentions]="remark | dsListMetricProps : 'data-hide-no-mentions' : isListElement" | ||
[attr.data-hide-less-than]="remark | dsListMetricProps : 'data-hide-less-than' : isListElement" | ||
[attr.data-badge-details]="remark | dsListMetricProps : 'data-badge-details' : isListElement" | ||
[attr.data-badge-type]="remark | dsListMetricProps : 'badgeType' : isListElement" | ||
[attr.data-badge-popover]="remark | dsListMetricProps : 'popover' : isListElement" | ||
[attr.data-doi]="remark | dsListMetricProps : 'doiAttr' : isListElement" | ||
[attr.data-pmid]="remark | dsListMetricProps : 'pmidAttr' : isListElement" | ||
[attr.data-link-target]="remark | dsListMetricProps : 'data-link-target' : isListElement" | ||
></div> | ||
</div> | ||
<div class="col-7" *ngIf="!hideLabel"> | ||
<div class="font-weight-bold text-capitalize"> | ||
{{ metric.metricType | translate }} | ||
</div> | ||
<div class="font-weight-bold" *ngIf="!hideLabel"> | ||
{{ "item.page.metric.label." + metric.metricType | translate }} | ||
</div> | ||
</div> |
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
28 changes: 12 additions & 16 deletions
28
src/app/shared/metric/metric-dimensions/metric-dimensions.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,23 +1,19 @@ | ||
<div class="row d-flex align-items-center" | ||
<div class="d-flex flex-nowrap flex-row gapx-3 align-items-center pr-3" | ||
*ngIf="!(isHidden$ | async) && !failed && (remark | dsListMetricProps: 'data-badge-enabled':isListElement == true)"> | ||
<div class="col-5 text-left"> | ||
<div | ||
#metricChild | ||
class="__dimensions_badge_embed__" | ||
[attr.data-hide-zero-citations]="remark | dsListMetricProps: 'data-hide-zero-citations':isListElement" | ||
[attr.data-pmid]=" | ||
<div | ||
#metricChild | ||
class="__dimensions_badge_embed__" | ||
[attr.data-hide-zero-citations]="remark | dsListMetricProps: 'data-hide-zero-citations':isListElement" | ||
[attr.data-pmid]=" | ||
(remark | dsListMetricProps: 'data-doi':isListElement) | ||
? null | ||
: (remark | dsListMetricProps: 'data-pmid':isListElement) | ||
" | ||
[attr.data-doi]="remark | dsListMetricProps: 'data-doi':isListElement" | ||
[attr.data-style]="remark | dsListMetricProps: 'data-style':isListElement" | ||
[attr.data-legend]="remark | dsListMetricProps: 'data-legend':isListElement" | ||
></div> | ||
</div> | ||
<div class="col-7" *ngIf="!hideLabel"> | ||
<div class="font-weight-bold text-capitalize"> | ||
{{ metric.metricType | translate }} | ||
</div> | ||
[attr.data-doi]="remark | dsListMetricProps: 'data-doi':isListElement" | ||
[attr.data-style]="remark | dsListMetricProps: 'data-style':isListElement" | ||
[attr.data-legend]="remark | dsListMetricProps: 'data-legend':isListElement" | ||
></div> | ||
<div class="font-weight-bold" *ngIf="!hideLabel"> | ||
{{ "item.page.metric.label." + metric.metricType | translate }} | ||
</div> | ||
</div> |
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
2 changes: 1 addition & 1 deletion
2
src/app/shared/metric/metric-loader/metric-loader.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,3 +1,3 @@ | ||
<div class="container p-2 mb-0" style="width: 250px;" role="alert" [ngClass]="metric | dsMetricStyleConfig"> | ||
<div role="alert" [ngClass]="metric | dsMetricStyleConfig"> | ||
<div #container></div> | ||
</div> |
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
Oops, something went wrong.