refactor: Cleanup

This commit is contained in:
Aleksander Grygier 2026-01-08 13:49:55 +01:00 committed by GitHub
parent 98bce85b1f
commit bf2a793f42
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -54,10 +54,12 @@
function handleOpenChange(newOpen: boolean) {
open = newOpen;
if (!newOpen) {
searchValue = '';
onSearchChange?.('');
}
onOpenChange?.(newOpen);
}
</script>
@ -79,6 +81,7 @@
<div class={cn('overflow-y-auto', 'max-h-[--bits-dropdown-menu-content-available-height]')}>
{@render children()}
{#if isEmpty}
<div class="px-2 py-3 text-center text-sm text-muted-foreground">{emptyMessage}</div>
{/if}
@ -86,6 +89,7 @@
{#if footer}
<DropdownMenu.Separator />
{@render footer()}
{/if}
</DropdownMenu.Content>

View File

@ -1,10 +1,6 @@
import type { ChatMessageTimings, ChatRole, ChatMessageType } from '$lib/types/chat';
import { AttachmentType } from '$lib/enums';
/**
* Per-chat MCP server override - allows enabling/disabling servers for specific conversations.
* If undefined for a server, the global setting is used.
*/
export interface McpServerOverride {
serverId: string;
enabled: boolean;