From 08b9c7ae0ee7a34870b8cfc1558ef11881548cf6 Mon Sep 17 00:00:00 2001 From: yiling Date: Wed, 27 May 2026 16:13:38 +0800 Subject: [PATCH] fix(comment): restrict timestamp capture toggle and badges to video files --- src/ui/components/chat/message-card.tsx | 10 ++++----- src/ui/components/chat/message-input.tsx | 20 +++++++++-------- .../components/file-viewer-right-sidebar.tsx | 22 ++++++++++++++----- 3 files changed, 33 insertions(+), 19 deletions(-) diff --git a/src/ui/components/chat/message-card.tsx b/src/ui/components/chat/message-card.tsx index 52f57a44..ae5b6245 100644 --- a/src/ui/components/chat/message-card.tsx +++ b/src/ui/components/chat/message-card.tsx @@ -3,11 +3,11 @@ import type { UserInfo } from '@/dtos/team' import { client } from '@/ui/api/client' import { Button } from '@/ui/components/ui/button' import { - Dialog, - DialogContent, - DialogDescription, - DialogHeader, - DialogTitle, + Dialog, + DialogContent, + DialogDescription, + DialogHeader, + DialogTitle, } from '@/ui/components/ui/dialog' import { Separator } from '@/ui/components/ui/separator' import { formatTimeAgo } from '@/ui/lib/time' diff --git a/src/ui/components/chat/message-input.tsx b/src/ui/components/chat/message-input.tsx index bca4babd..20fdc124 100644 --- a/src/ui/components/chat/message-input.tsx +++ b/src/ui/components/chat/message-input.tsx @@ -709,15 +709,17 @@ export const ChatInput = React.forwardRef( multiple onChange={handleFileSelect} /> - + {currentTime !== undefined && frameRate !== undefined && ( + + )}