-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
23 additions
and
9 deletions.
There are no files selected for viewing
32 changes: 23 additions & 9 deletions
32
libs/ui/elements/src/lib/download-item/download-item.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,22 +1,36 @@ | ||
<a href="{{ link.url }}" target="_blank" class="group flex justify-between card-shadow px-6 py-5 cursor-pointer" | ||
rel="noopener"> | ||
<a | ||
href="{{ link.url }}" | ||
target="_blank" | ||
class="group flex justify-between card-shadow px-6 py-5 cursor-pointer" | ||
rel="noopener" | ||
> | ||
<div class="grow-1 w-full overflow-hidden"> | ||
<div class="text-21 text-black truncate font-title w-11/12" [title]="link.label"> | ||
<div | ||
class="text-21 text-black truncate font-title w-11/12" | ||
[title]="link.label" | ||
> | ||
{{ link.label }} | ||
</div> | ||
<div class="pt-1"> | ||
<span | ||
class="inline-flex items-center justify-center px-2 py-1 text-13 font-medium leading-none text-white rounded transition-opacity opacity-70 group-hover:opacity-100" | ||
[style.background-color]="color" data-cy="download-format">{{ format || ('downloads.format.unknown' | translate) | ||
}}</span> | ||
<span class="pl-2 inline-flex items-center text-gray-800 text-sm" *ngIf="isFromWfs" | ||
translate="">datahub.search.filter.generatedByWfs</span> | ||
[style.background-color]="color" | ||
data-cy="download-format" | ||
>{{ format || ('downloads.format.unknown' | translate) }}</span | ||
> | ||
<span | ||
class="pl-2 inline-flex items-center text-gray-800 text-sm" | ||
*ngIf="isFromWfs" | ||
translate="" | ||
>datahub.search.filter.generatedByWfs</span | ||
> | ||
</div> | ||
</div> | ||
<div class="shrink-1 w-12 flex flex-col justify-center"> | ||
<mat-icon | ||
class="!w-8 !h-8 align-middle group-hover:text-secondary text-3xl material-icons-outlined text-gray-200 mr-4 transition-colors"> | ||
class="!w-8 !h-8 align-middle group-hover:text-secondary text-3xl material-icons-outlined text-gray-200 mr-4 transition-colors" | ||
> | ||
cloud_download | ||
</mat-icon> | ||
</div> | ||
</a> | ||
</a> |