1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-02-01 02:39:26 +00:00

30 lines
529 B
Svelte

<script>
import ObjectGrid from '../../../components/objectgrid.svelte';
import CodeExample from '../../../components/code-example.svelte';
export let collection;
</script>
<div class="stats">
<CodeExample code="db.stats()" />
<div class="grid">
<ObjectGrid data={collection.stats} />
</div>
</div>
<style>
.stats {
display: grid;
gap: 0.5rem;
grid-template: auto 1fr / 1fr;
}
.stats .grid {
overflow: auto;
min-height: 0;
min-width: 0;
border: 1px solid #ccc;
}
</style>