This commit is contained in:
parent
5aec82a819
commit
984c47c045
@ -3,7 +3,7 @@
|
||||
<p> # {{op.Id}} {{op.Timestamp}}</p>
|
||||
<div>
|
||||
<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>
|
||||
</div>
|
||||
<p>{{op.Text}}</p>
|
||||
|
@ -12,6 +12,10 @@ export class OPComponent implements OnInit {
|
||||
|
||||
@Input() op: SinglePost
|
||||
|
||||
setTimbnail(imgUrl:string){
|
||||
return imgUrl.replace("thread-pics", "thread-pics-small");
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
<h3 *ngIf="!showForm" (click)="showForm = !showForm">Открыть новую форму постинга</h3>
|
||||
<h3 *ngIf="showForm" (click)="showForm = !showForm" style="align-content: center">Скрыть новую форму постинга</h3>
|
||||
<h3 *ngIf="!showForm" (click)="showForm = !showForm">Открыть форму постинга</h3>
|
||||
<h3 *ngIf="showForm" (click)="showForm = !showForm" style="align-content: center">Скрыть форму постинга</h3>
|
||||
<div *ngIf="showForm" class="posting_form">
|
||||
<h4>Создай то, о чем будут говорить многие в /{{board}}/.</h4>
|
||||
<br>
|
||||
|
Reference in New Issue
Block a user