This commit is contained in:
Timothy Jaeryang Baek committed 2026-07-06 23:35:52 -05:00
1 parent d148183d38
commit d271bbd381
5 files changed
+17 -14

No files matched your search

@@ -376,7 +376,7 @@
>
<button
class="flex items-center gap-2 min-w-0 flex-1 h-full px-2 text-inherit"
use:tooltip={item.tooltip ? { content: item.tooltip, placement: 'right' } : null}
use:tooltip={item.tooltip ? { content: item.tooltip, placement: 'top' } : null}
onclick={() => {
item.onclick();
onclose();
@@ -1124,7 +1124,7 @@
{#if showSlashCommands}
<div
class="app-theme app-surface absolute left-2 bottom-full mb-1 z-50 w-60 max-h-40 overflow-y-auto rounded-xl border shadow-xl p-0.5"
class="app-theme app-surface absolute left-2 bottom-full mb-1 z-50 w-64 max-h-40 overflow-y-auto rounded-xl border shadow-xl p-0.5"
>
{#if slashCommandIds.length > 0}
<div class="app-muted mb-0.5 px-2 pt-1 pb-0.5 text-[0.625rem] leading-none">
@@ -1137,7 +1137,7 @@
aria-label="Compact: shorten older messages so this chat can keep going."
use:tooltip={{
content: 'Shorten older messages so this chat can keep going.',
placement: 'right'
placement: 'top'
}}
class="slash-command-row flex items-center gap-2 w-full h-6 px-2 rounded-xl text-xs text-left transition-colors duration-75
{selectedSlashCommand('compact') ? 'app-interactive-active' : ''} disabled:opacity-50"
@@ -1186,7 +1186,7 @@
aria-label="Plan: work out a plan first, then wait before changing files."
use:tooltip={{
content: 'Work out a plan first, then wait before changing files.',
placement: 'right'
placement: 'top'
}}
class="slash-command-row flex items-center gap-2 w-full h-6 px-2 rounded-xl text-xs text-left transition-colors duration-75
{selectedSlashCommand('plan') ? 'app-interactive-active' : ''}"
@@ -1227,7 +1227,7 @@
aria-label="Fork: clone this chat into a new copy."
use:tooltip={{
content: 'Clone this chat into a new copy.',
placement: 'right'
placement: 'top'
}}
class="slash-command-row flex items-center gap-2 w-full h-6 px-2 rounded-xl text-xs text-left transition-colors duration-75
{selectedSlashCommand('fork') ? 'app-interactive-active' : ''} disabled:opacity-50"
@@ -1255,7 +1255,7 @@
aria-label="Status: check what is running in this chat."
use:tooltip={{
content: 'Check what is running in this chat.',
placement: 'right'
placement: 'top'
}}
class="slash-command-row flex items-center gap-2 w-full h-6 px-2 rounded-xl text-xs text-left transition-colors duration-75
{selectedSlashCommand('status') ? 'app-interactive-active' : ''}"
@@ -1294,7 +1294,7 @@
aria-label="List skills: see the skills available in this workspace."
use:tooltip={{
content: 'See the skills available in this workspace.',
placement: 'right'
placement: 'top'
}}
class="slash-command-row flex items-center gap-2 w-full h-6 px-2 rounded-xl text-xs text-left transition-colors duration-75
{selectedSlashCommand('skills:list') ? 'app-interactive-active' : ''}"
@@ -1319,7 +1319,7 @@
aria-label="Create skill: teach Computer a reusable workflow."
use:tooltip={{
content: 'Teach Computer a reusable workflow.',
placement: 'right'
placement: 'top'
}}
class="slash-command-row flex items-center gap-2 w-full h-6 px-2 rounded-xl text-xs text-left transition-colors duration-75
{selectedSlashCommand('skills:create') ? 'app-interactive-active' : ''}"
@@ -1345,8 +1345,8 @@
type="button"
aria-label={`Use skill: ${skill.label}`}
use:tooltip={{
content: skill.description || 'Use this skill in the message.',
placement: 'right'
content: skill.label,
placement: 'top'
}}
class="slash-command-row flex items-center gap-2 w-full h-6 px-2 rounded-xl text-xs text-left transition-colors duration-75
{selectedSlashSkill(skill.id) ? 'app-interactive-active' : ''}"
@@ -2,6 +2,7 @@
import Icon from '../Icon.svelte';
import { fileIconName } from '$lib/utils/fileIcon';
import { t } from '$lib/i18n';
import { tooltip } from '$lib/tooltip';
interface SuggestionItem {
id: string;
@@ -35,7 +36,7 @@
</script>
<div
class="app-theme app-surface fixed z-50 w-60 max-h-40 overflow-y-auto rounded-xl border shadow-xl p-0.5"
class="app-theme app-surface fixed z-50 w-64 max-h-40 overflow-y-auto rounded-xl border shadow-xl p-0.5"
>
{#if items.length === 0}
<div class="app-muted flex items-center h-6 px-2 text-xs">{$t('quickOpen.noFiles')}</div>
@@ -54,6 +55,7 @@
onselect(i);
}}
onmouseenter={() => (selectedIndex = i)}
use:tooltip={{ content: item.id, placement: 'top' }}
>
<span class="app-icon-muted flex items-center justify-center w-4 shrink-0">
<Icon name={fileIconName(item.label, item.type)} size={14} />
@@ -1,6 +1,7 @@
<script lang="ts">
import Icon from '$lib/components/Icon.svelte';
import { t } from '$lib/i18n';
import { tooltip } from '$lib/tooltip';
interface SuggestionItem {
id: string;
@@ -28,7 +29,7 @@
</script>
<div
class="app-theme app-surface fixed z-50 w-60 max-h-40 overflow-y-auto rounded-xl border shadow-xl p-0.5"
class="app-theme app-surface fixed z-50 w-64 max-h-40 overflow-y-auto rounded-xl border shadow-xl p-0.5"
>
{#if items.length === 0}
<div class="app-muted flex items-center h-6 px-2 text-xs">{$t('chat.noSkillsFound')}</div>
@@ -47,7 +48,7 @@
onselect(i);
}}
onmouseenter={() => (selectedIndex = i)}
title={item.description}
use:tooltip={{ content: item.label, placement: 'top' }}
>
<span class="app-icon-muted flex items-center justify-center w-4 shrink-0">
<Icon name="spark" size={13} strokeWidth={1.7} />
@@ -101,7 +101,7 @@
{preferAbove}
forceAbove={preferAbove}
maxHeight={selectorMaxHeight}
className="w-48"
className="w-52"
{align}
>
{#snippet header()}