Tumbnail fix
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
RakVhalate 2022-12-14 20:05:29 +05:00
parent 5aec82a819
commit 984c47c045
3 changed files with 7 additions and 3 deletions

View File

@ -3,7 +3,7 @@
<p> # {{op.Id}} {{op.Timestamp}}</p> <p> # {{op.Id}} {{op.Timestamp}}</p>
<div> <div>
<a *ngFor="let i of op.ImgURL" [href]="i" target="_blank"> <a *ngFor="let i of op.ImgURL" [href]="i" target="_blank">
<img [src]="i" style="height:140px"> <img [src]="setTimbnail(i)" style="height:140px">
</a> </a>
</div> </div>
<p>{{op.Text}}</p> <p>{{op.Text}}</p>

View File

@ -12,6 +12,10 @@ export class OPComponent implements OnInit {
@Input() op: SinglePost @Input() op: SinglePost
setTimbnail(imgUrl:string){
return imgUrl.replace("thread-pics", "thread-pics-small");
}
ngOnInit(): void { ngOnInit(): void {
} }

View File

@ -1,5 +1,5 @@
<h3 *ngIf="!showForm" (click)="showForm = !showForm">Открыть новую форму постинга</h3> <h3 *ngIf="!showForm" (click)="showForm = !showForm">Открыть форму постинга</h3>
<h3 *ngIf="showForm" (click)="showForm = !showForm" style="align-content: center">Скрыть новую форму постинга</h3> <h3 *ngIf="showForm" (click)="showForm = !showForm" style="align-content: center">Скрыть форму постинга</h3>
<div *ngIf="showForm" class="posting_form"> <div *ngIf="showForm" class="posting_form">
<h4>Создай то, о чем будут говорить многие в /{{board}}/.</h4> <h4>Создай то, о чем будут говорить многие в /{{board}}/.</h4>
<br> <br>