mirror of
https://github.com/garraflavatra/rolens.git
synced 2024-12-01 13:20:54 +00:00
Updated stats grid too
This commit is contained in:
parent
928b4d229c
commit
49b2f52af8
@ -136,7 +136,7 @@
|
||||
{#each columns as column}
|
||||
{@const value = item[column.key]}
|
||||
<td class:right={column.right} title={value}>
|
||||
{formatValue(value)}
|
||||
<div class="value">{formatValue(value)}</div>
|
||||
</td>
|
||||
{/each}
|
||||
</tr>
|
||||
@ -212,6 +212,14 @@
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
td .value {
|
||||
height: 2.1ex;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
max-width: 25em;
|
||||
}
|
||||
|
||||
tbody tr.selected td {
|
||||
background-color: #00008b;
|
||||
color: #fff;
|
||||
|
@ -7,7 +7,10 @@
|
||||
|
||||
<div class="stats">
|
||||
<CodeExample code="db.stats()" />
|
||||
|
||||
<div class="grid">
|
||||
<ObjectGrid data={collection.stats} />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
@ -16,4 +19,11 @@
|
||||
gap: 0.5rem;
|
||||
grid-template: auto 1fr / 1fr;
|
||||
}
|
||||
|
||||
.stats .grid {
|
||||
overflow: auto;
|
||||
min-height: 0;
|
||||
min-width: 0;
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user