Tumbnails added
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
RakVhalate 2022-12-13 19:45:06 +05:00
parent b857c1b573
commit 5aec82a819
2 changed files with 6 additions and 1 deletions

View File

@ -2,7 +2,7 @@
<p> # {{post.Id}} {{post.Timestamp}}</p> <p> # {{post.Id}} {{post.Timestamp}}</p>
<div> <div>
<a class="postPictures" *ngFor="let i of post.ImgURL" [href]="i" target="_blank"> <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> </a>
</div> </div>
<p class="postText">{{post.Text}}</p> <p class="postText">{{post.Text}}</p>

View File

@ -14,6 +14,11 @@ export class PostComponent implements OnInit {
@Input() post: SinglePost @Input() post: SinglePost
setTimbnail(imgUrl:string){
return imgUrl.replace("thread-pics", "thread-pics-small");
}
ngOnInit(): void { ngOnInit(): void {
} }
} }