mirror of
https://github.com/block-core/blockcore-notes.git
synced 2024-09-29 06:20:42 +00:00
Display images and videos before text
This commit is contained in:
parent
b59f513223
commit
394e5883d8
@ -45,13 +45,12 @@
|
||||
<app-event-header [pubkey]="event.pubkey"><span class="event-date" [matTooltip]="event.created_at.toString()">{{ event.created_at | ago }}</span> <app-directory-icon [pubkey]="event.pubkey"></app-directory-icon></app-event-header>
|
||||
<app-event-actions [event]="event" [pubkey]="event.pubkey"></app-event-actions>
|
||||
</div>
|
||||
|
||||
<app-content class="thread-content" [ngClass]="{ 'no-lines': !optionsService.options.showLines, 'lines': optionsService.options.showLines }" [event]="event"></app-content>
|
||||
<app-event-reactions class="thread-reactions" [threadEntry]="thread.getTreeEntry(thread.threadId)"></app-event-reactions>
|
||||
<app-event-buttons [event]="event"></app-event-buttons>
|
||||
<app-event-thread [threadEntry]="thread.getTreeEntry(thread.threadId)"> </app-event-thread>
|
||||
</div>
|
||||
|
||||
<app-event-thread [threadEntry]="thread.getTreeEntry(thread.threadId)"> </app-event-thread>
|
||||
|
||||
</div>
|
||||
<mat-divider></mat-divider>
|
||||
|
||||
|
@ -1,13 +1,11 @@
|
||||
<div class="content clickable" *ngIf="event">
|
||||
{{ content }}<span *ngIf="event.contentCut">... (message was truncated)</span>
|
||||
<div class="event-images" *ngIf="images && images.length > 0">
|
||||
<img class="event-image" [src]="image" (click)="expandImage(image)" *ngFor="let image of images" />
|
||||
</div>
|
||||
|
||||
<div class="event-videos" *ngIf="videos && videos.length > 0">
|
||||
<iframe id="ytplayer" class="event-video" type="text/html" *ngFor="let video of videos" [src]="video" frameborder="0"></iframe>
|
||||
</div>
|
||||
|
||||
{{ content }}<span *ngIf="event.contentCut">... (message was truncated)</span>
|
||||
<!-- <span class="dimmed">{{ likes(event) }} likes {{ dislikes(event) }} dislikes {{ replies(event) }} replies</span><br /> -->
|
||||
<ng-template [ngIf]="displayRepliesTo">
|
||||
<div *ngIf="repliesTo(event) as replies" class="reply-to dimmed clickable">
|
||||
|
Loading…
Reference in New Issue
Block a user