mirror of
https://github.com/aljazceru/hypergolic.git
synced 2025-12-19 14:34:20 +01:00
fix: rockets dashboard UI
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
import { goto } from '$app/navigation';
|
||||
import { base } from '$app/paths';
|
||||
import Badge from '@/components/ui/badge/badge.svelte';
|
||||
import Button from '@/components/ui/button/button.svelte';
|
||||
import * as Card from '@/components/ui/card';
|
||||
import * as Table from '@/components/ui/table';
|
||||
import { MapOfMeritResult, MeritRequest } from '@/event_helpers/merits';
|
||||
@@ -33,7 +34,7 @@
|
||||
_votes?.unsubscribe();
|
||||
});
|
||||
|
||||
let truncate = writable(true)
|
||||
let truncate = writable(true);
|
||||
|
||||
let merits = derived(_merits, ($merits) => {
|
||||
let map = new Map<string, MeritRequest>();
|
||||
@@ -138,16 +139,14 @@
|
||||
<Table.Cell class="hidden text-right md:table-cell"
|
||||
>{unixToRelativeTime(merit.TimeStamp * 1000)}</Table.Cell
|
||||
>
|
||||
|
||||
</Table.Row>
|
||||
{/each}
|
||||
{#if $merits.size > $meritsTruncated.length}
|
||||
<span
|
||||
<Button
|
||||
class="mt-2 rounded-full"
|
||||
on:click={() => {
|
||||
truncate.set(false)
|
||||
}}
|
||||
class="m-2 flex w-48 flex-nowrap text-lg"
|
||||
><Badge href="#">View {$merits.size - $meritsTruncated.length} more</Badge></span
|
||||
truncate.set(false);
|
||||
}}>View {$merits.size - $meritsTruncated.length} more</Button
|
||||
>
|
||||
{/if}
|
||||
</Table.Body>
|
||||
|
||||
Reference in New Issue
Block a user