mirror of
https://github.com/open-webui/computer.git
synced 2026-11-22 21:50:43 -05:00
refac
This commit is contained in:
1 parent
122e16183f
commit
09793beeed
2 files changed
+7
-6
No files matched your search
@@ -83,6 +83,10 @@
|
||||
<path d="M16 9.2C15.2 9.2 14.5 9.7 14.2 10.4" />
|
||||
<path d="M8.6 14.2C9.4 14.2 10.1 13.8 10.5 13.1" />
|
||||
<path d="M15.4 14.2C14.6 14.2 13.9 13.8 13.5 13.1" />
|
||||
{:else if name === 'spark'}
|
||||
<path
|
||||
d="M3 12C9.26752 12 12 9.36306 12 3C12 9.36306 14.7134 12 21 12C14.7134 12 12 14.7134 12 21C12 14.7134 9.26752 12 3 12Z"
|
||||
/>
|
||||
{:else if name === 'plus'}
|
||||
<path d="M6 12H12M18 12H12M12 12V6M12 12V18" />
|
||||
{:else if name === 'xmark'}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<script lang="ts">
|
||||
import Icon from '$lib/components/Icon.svelte';
|
||||
import { t } from '$lib/i18n';
|
||||
|
||||
interface SuggestionItem {
|
||||
@@ -32,7 +33,7 @@
|
||||
{#if items.length === 0}
|
||||
<div class="app-muted flex items-center h-6 px-2 text-xs">{$t('chat.noSkillsFound')}</div>
|
||||
{:else}
|
||||
<div class="app-muted px-2 pt-1 pb-0.5 text-[0.625rem] leading-none">
|
||||
<div class="app-muted mb-0.5 px-2 pt-1 pb-0.5 text-[0.625rem] leading-none">
|
||||
{$t('chat.skills')}
|
||||
</div>
|
||||
<div bind:this={listEl}>
|
||||
@@ -49,11 +50,7 @@
|
||||
title={item.description}
|
||||
>
|
||||
<span class="app-icon-muted flex items-center justify-center w-4 shrink-0">
|
||||
<svg viewBox="0 0 16 16" fill="currentColor" class="size-3.5">
|
||||
<path
|
||||
d="M8.75 1a.75.75 0 0 0-1.5 0v1.249c-1.373.158-2.476.682-3.33 1.536C3.066 4.639 2.5 5.77 2.5 7.25c0 1.296-.266 2.193-.613 2.852-.35.663-.83 1.132-1.268 1.507a.75.75 0 0 0 .494 1.315h3.137a3.75 3.75 0 0 0 7.5 0h3.137a.75.75 0 0 0 .494-1.315c-.438-.375-.919-.844-1.268-1.507-.347-.659-.613-1.556-.613-2.852 0-1.48-.566-2.611-1.42-3.465-.854-.854-1.957-1.378-3.33-1.536V1ZM6.5 12.924a2.25 2.25 0 0 0 3 0h-3Z"
|
||||
/>
|
||||
</svg>
|
||||
<Icon name="spark" size={13} strokeWidth={1.7} />
|
||||
</span>
|
||||
<span class="flex-1 min-w-0 flex items-baseline gap-1.5 overflow-hidden">
|
||||
<span class="truncate">{item.label}</span>
|
||||
|
||||
Reference in new issue
Block a user