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

(fix): bring back routerLink on the image

parent 26597e98
Pipeline #107791707 passed with stages
in 50 minutes and 47 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) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment