Improve workspace navigation, search, and tab actions
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<script lang="ts">
|
||||
import type { MenuAction, MenuItem } from "./menuTypes";
|
||||
import Icon from "$lib/ui/Icon.svelte";
|
||||
|
||||
type Props = {
|
||||
x: number;
|
||||
@@ -75,6 +76,7 @@
|
||||
disabled={sub.disabled}
|
||||
onclick={() => runAction(sub)}
|
||||
>
|
||||
{#if sub.icon}<Icon icon={sub.icon} />{/if}
|
||||
{sub.label}
|
||||
</button>
|
||||
{/if}
|
||||
@@ -88,6 +90,7 @@
|
||||
disabled={item.disabled}
|
||||
onclick={() => runAction(item)}
|
||||
>
|
||||
{#if item.icon}<Icon icon={item.icon} />{/if}
|
||||
{item.label}
|
||||
</button>
|
||||
{/if}
|
||||
@@ -101,6 +104,7 @@
|
||||
padding: 4px 0;
|
||||
background: var(--rs-bg-elevated);
|
||||
border: 1px solid var(--rs-border);
|
||||
border-radius: var(--rs-control-radius);
|
||||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
|
||||
}
|
||||
|
||||
@@ -139,13 +143,16 @@
|
||||
}
|
||||
|
||||
button {
|
||||
display: block;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
width: 100%;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: var(--rs-text-strong);
|
||||
text-align: left;
|
||||
padding: 6px 12px;
|
||||
border-radius: var(--rs-control-radius);
|
||||
}
|
||||
|
||||
button:hover,
|
||||
|
||||
Reference in New Issue
Block a user