fix cramped/overflowing node ranking pages

This commit is contained in:
Mononaut
2023-01-18 16:37:12 -06:00
parent d89b313db8
commit c3ae46795b
6 changed files with 56 additions and 41 deletions

View File

@@ -1,7 +1,7 @@
<span *ngIf="seconds === undefined">-</span>
<span *ngIf="seconds !== undefined">
&lrm;{{ seconds * 1000 | date: customFormat ?? 'yyyy-MM-dd HH:mm' }}
<div class="lg-inline">
<div class="lg-inline" *ngIf="!hideTimeSince">
<i class="symbol">(<app-time-since [time]="seconds" [fastRender]="true"></app-time-since>)</i>
</div>
</span>

View File

@@ -10,6 +10,7 @@ export class TimestampComponent implements OnChanges {
@Input() unixTime: number;
@Input() dateString: string;
@Input() customFormat: string;
@Input() hideTimeSince: boolean = false;
seconds: number | undefined = undefined;