mirror of
https://github.com/kunkunsh/kunkun.git
synced 2025-04-03 22:26:43 +00:00
fix: show action icon in action panel (#219)
This commit is contained in:
parent
6555ebcfcb
commit
f09b2832e9
@ -1,10 +1,9 @@
|
||||
<script lang="ts">
|
||||
import Icon from "@iconify/svelte"
|
||||
import { Action as ActionSchema } from "@kksh/api/models"
|
||||
import { Button, ButtonModule, Command, Input, Label, Popover } from "@kksh/svelte5"
|
||||
import { cn } from "@kksh/ui/utils"
|
||||
import { Check, ChevronsUpDown } from "lucide-svelte"
|
||||
import { tick } from "svelte"
|
||||
import { Button, Command, Popover } from "@kksh/svelte5"
|
||||
import { ChevronsUpDown } from "lucide-svelte"
|
||||
import { IconMultiplexer } from "../common"
|
||||
import Kbd from "../common/Kbd.svelte"
|
||||
|
||||
const isMac = navigator.platform.toLowerCase().includes("mac")
|
||||
@ -80,6 +79,11 @@
|
||||
onActionSelected?.(action.value)
|
||||
}}
|
||||
>
|
||||
{#if action.icon}
|
||||
<IconMultiplexer icon={action.icon} class="!h-4 !w-4 shrink-0"></IconMultiplexer>
|
||||
{:else}
|
||||
<Icon icon="mdi:gear-outline" class="!h-4 !w-4 shrink-0"></Icon>
|
||||
{/if}
|
||||
{action.title}
|
||||
</Command.Item>
|
||||
{/each}
|
||||
|
Loading…
x
Reference in New Issue
Block a user