feat: add in site message comp

This commit is contained in:
Joel
2026-03-09 10:54:19 +08:00
parent 8c0875322e
commit 7ccdc30133
3 changed files with 173 additions and 3 deletions

View File

@ -9,7 +9,7 @@ type WithIconItemProps = WithIconCardItemProps & {
function WithIconCardItem({ icon, children }: WithIconItemProps) {
return (
<div className="flex h-11 items-center space-x-3 rounded-lg bg-background-section px-2">
<Image src={icon} className="!border-none object-contain" alt="icon" width={40} height={40} />
<Image src={decodeURIComponent(icon)} className="!border-none object-contain" alt="icon" width={40} height={40} />
<div className="min-w-0 grow overflow-hidden text-text-secondary system-sm-medium [&_p]:!m-0 [&_p]:block [&_p]:w-full [&_p]:overflow-hidden [&_p]:text-ellipsis [&_p]:whitespace-nowrap">
{children}
</div>