Commit 3530d671 authored by Marcelo Rivera's avatar Marcelo Rivera

(fix): bring back routerLink on the image

1 merge request!683Use media modal in channel media feeds
Pipeline #107791707 passed with stages
in 49 minutes and 38 seconds
......@@ -10,6 +10,7 @@
[ngClass]="{
'm-newsfeed-tiles__Tile--is-mature': attachment.shouldBeBlurred(entity)
}"
[routerLink]="['/newsfeed', entity.guid]"
>
<img
[src]="getThumbnailSrc(entity$ | async)"
......
......@@ -26,7 +26,6 @@ m-newsfeed__tiles {
margin: 4px;
overflow: hidden;
transform-style: preserve-3d;
cursor: pointer;
@include m-theme() {
background-color: rgba(themed($m-black), 0.65);
......
......@@ -64,6 +64,8 @@ export class NewsfeedTilesComponent {
this.setImageDimensions(entity, event.target as HTMLImageElement);
}
this.openModal(entity);
event.preventDefault();
event.stopPropagation();
}
setImageDimensions(entity, imageElement: HTMLImageElement) {
......
Please register or to comment