This commit is contained in:
parent
b857c1b573
commit
5aec82a819
@ -2,7 +2,7 @@
|
||||
<p> # {{post.Id}} {{post.Timestamp}}</p>
|
||||
<div>
|
||||
<a class="postPictures" *ngFor="let i of post.ImgURL" [href]="i" target="_blank">
|
||||
<img [src]="i" style="height:140px">
|
||||
<img [src]="setTimbnail(i)" style="height:140px">
|
||||
</a>
|
||||
</div>
|
||||
<p class="postText">{{post.Text}}</p>
|
||||
|
@ -14,6 +14,11 @@ export class PostComponent implements OnInit {
|
||||
|
||||
@Input() post: SinglePost
|
||||
|
||||
|
||||
setTimbnail(imgUrl:string){
|
||||
return imgUrl.replace("thread-pics", "thread-pics-small");
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user