From 8249625605af0575a459bcf98f3b3cdb2d01c544 Mon Sep 17 00:00:00 2001 From: Xiao Gui <xgui3783@gmail.com> Date: Tue, 22 Oct 2019 15:39:56 +0200 Subject: [PATCH] fixes #382 --- .../detailedView/singleDataset.template.html | 21 +++++++------------ 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/src/ui/databrowserModule/singleDataset/detailedView/singleDataset.template.html b/src/ui/databrowserModule/singleDataset/detailedView/singleDataset.template.html index 832199887..093d905b5 100644 --- a/src/ui/databrowserModule/singleDataset/detailedView/singleDataset.template.html +++ b/src/ui/databrowserModule/singleDataset/detailedView/singleDataset.template.html @@ -1,14 +1,11 @@ <!-- title --> -<mat-card-subtitle *ngIf="!simpleMode"> +<mat-card-subtitle> {{ name }} </mat-card-subtitle> -<mat-card-content *ngIf="simpleMode"> - <small> - {{ name }} - </small> - <mat-grid-list [cols]="kgReference.length + (preview ? 1 : 0) + (downloadEnabled ? 2 : 0)" rowHeight="4em"> +<mat-card-content mat-dialog-content> + <mat-grid-list *ngIf="false" [cols]="kgReference.length + (preview ? 1 : 0) + (downloadEnabled ? 2 : 0)" rowHeight="4em"> <!-- explore --> <mat-grid-tile *ngFor="let kgRef of kgReference"> @@ -57,19 +54,15 @@ </button> </mat-grid-tile> </mat-grid-list> -</mat-card-content> -<!-- description --> -<mat-card-content *ngIf="!simpleMode"> + <!-- description --> <small> - <markdown-dom [markdown]="description"> + <markdown-dom class="d-block" [markdown]="description"> </markdown-dom> </small> -</mat-card-content> -<!-- publications --> -<mat-card-content *ngIf="!simpleMode"> + <!-- publications --> <small class="d-block mb-2" *ngFor="let publication of publications"> <a *ngIf="publication.doi; else plainText" @@ -86,7 +79,7 @@ <!-- footer --> -<mat-card-actions *ngIf="!simpleMode"> +<mat-card-actions> <!-- explore --> <a *ngFor="let kgRef of kgReference" -- GitLab