Fix/workspace logo style (#17164)

This commit is contained in:
NFish
2025-03-31 14:26:43 +08:00
committed by GitHub
parent cf05e9cf78
commit 161724fb17
6 changed files with 18 additions and 9 deletions

View File

@@ -1,3 +1,4 @@
import classNames from '@/utils/classnames'
import type { FC } from 'react'
type LogoEmbeddedChatHeaderProps = {
@@ -7,13 +8,16 @@ type LogoEmbeddedChatHeaderProps = {
const LogoEmbeddedChatHeader: FC<LogoEmbeddedChatHeaderProps> = ({
className,
}) => {
return (
return <picture>
<source media="(resolution: 1x)" srcSet='/logo/logo-embedded-chat-header.png' />
<source media="(resolution: 2x)" srcSet='/logo/logo-embedded-chat-header@2x.png' />
<source media="(resolution: 3x)" srcSet='/logo/logo-embedded-chat-header@3x.png' />
<img
src='/logo/logo-embedded-chat-header.png'
className={`block h-6 w-auto ${className}`}
alt='logo'
className={classNames('block h-6 w-auto', className)}
/>
)
</picture>
}
export default LogoEmbeddedChatHeader