mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-07-16 21:14:05 +00:00
Grid icon
This commit is contained in:
@ -115,6 +115,12 @@
|
||||
{/if}
|
||||
</td>
|
||||
|
||||
<td class="has-icon">
|
||||
<div style:margin-left="{level * 10}px">
|
||||
<Icon name={item.icon} />
|
||||
</div>
|
||||
</td>
|
||||
|
||||
{#each columns as column, columnIndex}
|
||||
{@const value = column.key?.includes('.') ? resolveKeypath(item, column.key) : item[column.key]}
|
||||
<td class:right={column.right} title={value}>
|
||||
@ -157,7 +163,15 @@
|
||||
cursor: pointer;
|
||||
}
|
||||
td.has-toggle {
|
||||
width: calc(20px + 0.3rem);
|
||||
width: 20px;
|
||||
}
|
||||
td.has-icon {
|
||||
padding: 0;
|
||||
width: 17px;
|
||||
}
|
||||
td.has-icon :global(svg) {
|
||||
width: 13px;
|
||||
height: 13px;
|
||||
}
|
||||
|
||||
td .value {
|
||||
|
@ -29,6 +29,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="has-toggle"></th>
|
||||
<th class="has-icon"></th>
|
||||
{#each columns as column}
|
||||
<th scope="col">{column.title || ''}</th>
|
||||
{/each}
|
||||
|
Reference in New Issue
Block a user