Skip to content

Commit 31035bc

Browse files
committed
refactor: Minor formatting and cleanup in chat attachments
1 parent bddfcb6 commit 31035bc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tools/server/webui/src/lib/components/app/chat/ChatAttachments/ChatAttachmentsList.svelte

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
<script lang="ts">
22
import { ChatAttachmentImagePreview, ChatAttachmentFilePreview } from '$lib/components/app';
33
import ChatAttachmentPreviewDialog from './ChatAttachmentPreviewDialog.svelte';
4-
import { FileTypeCategory, PdfMimeType, getFileTypeCategory } from '$lib/constants/supported-file-types';
4+
import {
5+
FileTypeCategory,
6+
PdfMimeType,
7+
getFileTypeCategory
8+
} from '$lib/constants/supported-file-types';
59
610
interface Props {
711
class?: string;
@@ -44,12 +48,11 @@
4448
} | null>(null);
4549
4650
function openPreview(item: (typeof displayItems)[0], event?: Event) {
47-
// Prevent form submission when clicking on attachments
4851
if (event) {
4952
event.preventDefault();
5053
event.stopPropagation();
5154
}
52-
55+
5356
previewItem = {
5457
uploadedFile: item.uploadedFile,
5558
attachment: item.attachment,

0 commit comments

Comments
 (0)