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

30 lines
529 B
Svelte
Raw Normal View History

2023-01-11 20:41:15 +01:00
<script>
2023-01-16 20:03:56 +01:00
import ObjectGrid from '../../../components/objectgrid.svelte';
import CodeExample from '../../../components/code-example.svelte';
2023-01-11 20:41:15 +01:00
export let collection;
</script>
<div class="stats">
<CodeExample code="db.stats()" />
2023-01-17 16:45:22 +01:00
<div class="grid">
<ObjectGrid data={collection.stats} />
</div>
2023-01-11 20:41:15 +01:00
</div>
<style>
.stats {
display: grid;
gap: 0.5rem;
grid-template: auto 1fr / 1fr;
}
2023-01-17 16:45:22 +01:00
.stats .grid {
overflow: auto;
min-height: 0;
min-width: 0;
border: 1px solid #ccc;
}
2023-01-11 20:41:15 +01:00
</style>