Skip to content

Commit

Permalink
Show license type in the default grey color in the item view box
Browse files Browse the repository at this point in the history
  • Loading branch information
milanmajchrak committed Jan 23, 2024
1 parent d803760 commit c2bba47
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</div>
<div [ngClass]="{'row': true, 'justify-content-end': true, 'pt-3': (itemCountOfFiles | async) === -1}">
<div *ngIf="licenseType != null"
[ngClass]="'d-inline py-1 px-1 label label-license' + ' label-' + licenseLabel + ' rounded text-white'">
[ngClass]="'d-inline py-1 px-1 label label-license label-default' + ' label-' + licenseLabel + ' rounded text-white'">
<span>
{{licenseType }}
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ export class ClarinItemBoxViewComponent implements OnInit {
case LicenseType.academic:
this.licenseType = 'Academic Use';
break;
default:
this.licenseType = this.licenseLabel;
break;
}

// load license label icons
Expand Down
5 changes: 5 additions & 0 deletions src/styles/_clarin-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
border-radius: 0.25em 0 0 0.25em;
}

.label-default {
color: grey !important;
background-color: whitesmoke;
}

.label-PUB {
background-color: #dff0d8 !important;
color: #5cb811 !important;;
Expand Down

0 comments on commit c2bba47

Please sign in to comment.