Skip to content

Commit

Permalink
增加图片放大效果
Browse files Browse the repository at this point in the history
  • Loading branch information
renqabs authored Nov 12, 2023
1 parent efefafb commit 388a563
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/chat-message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { ChatMessageModel } from '@/lib/bots/bing/types'
import { TurnCounter } from './turn-counter'
import { ChatFeedback } from './chat-feedback'
import { ChatProgress } from './chat-progress'

import './image.css'
export interface ChatMessageProps {
index: number
message: ChatMessageModel
Expand Down Expand Up @@ -56,7 +56,7 @@ export function ChatMessage({ message, index, ...props }: ChatMessageProps) {
// delete watermark
uri.searchParams.delete('c')
uri.searchParams.delete('o')
return <a style={{ float: 'left', maxWidth: '50%' }} href={uri.toString()} target="_blank" rel="noopener noreferrer"><img src={obj.src} alt={obj.alt} width={w!} height={h!} /></a>
return <a style={{ float: 'left', maxWidth: '50%' }} href={uri.toString()} target="_blank" rel="noopener noreferrer"><img className='imagecreator' src={obj.src} alt={obj.alt} width={w!} height={h!} /></a>
}
} catch (e) {
}
Expand Down

0 comments on commit 388a563

Please sign in to comment.