1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-07-16 21:14:05 +00:00

Update hosttree menus

This commit is contained in:
2023-01-23 13:17:07 +01:00
parent 4d50d43f4d
commit c76e5c9503
3 changed files with 51 additions and 49 deletions

View File

@ -1,10 +1,10 @@
<script>
import GridItems from './grid-items.svelte';
import Icon from './icon.svelte';
// import Icon from './icon.svelte';
export let columns = [];
export let items = [];
export let actions = [];
// export let actions = [];
export let key = 'id';
export let activePath = [];
export let striped = true;
@ -13,7 +13,7 @@
</script>
<div class="grid">
{#if actions?.length}
<!-- {#if actions?.length}
<div class="actions">
{#each actions as action}
<button class="btn" on:click={action.fn} disabled={action.disabled}>
@ -22,7 +22,7 @@
</button>
{/each}
</div>
{/if}
{/if} -->
<table>
{#if showHeaders && columns.some(col => col.title)}
@ -59,14 +59,14 @@
background-color: #fff;
}
.actions {
/* .actions {
margin-bottom: 0.5rem;
padding: 0.5rem;
border-bottom: 1px solid #ccc;
}
.actions button {
margin-right: 0.2rem;
}
} */
table {
border-collapse: collapse;