Skip to content

Commit 502de5d

Browse files
committed
fix(chat): align source typography and improve favicon fidelity
1 parent 766df5d commit 502de5d

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

‎apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/source-card/source-card.tsx‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import {
1818
import { Check, Link as LinkIcon, MoreHorizontal, Sparkles } from '@sim/emcn/icons'
1919
import { formatDate } from '@sim/utils/formatting'
2020
import { findTermMatches, queryTerms } from '@/lib/knowledge/search/snippet'
21+
import { inter } from '@/app/_styles/fonts/inter/inter'
2122
import {
2223
SourceIcon,
2324
sourceLabel,
@@ -29,7 +30,8 @@ import type { SourceTagData } from '@/app/workspace/[workspaceId]/home/component
2930
const SOURCE_ROW_CLASSES = cn(
3031
'not-prose flex items-start gap-2 px-2 py-2 transition-colors focus-within:bg-[var(--surface-hover)]',
3132
chipHoverSurfaceClass,
32-
chipRadiusClass
33+
chipRadiusClass,
34+
inter.className
3335
)
3436
const SOURCE_ROW_MARK_CLASSES = cn(chipIconSlotClass, 'mt-0.5')
3537

@@ -140,7 +142,7 @@ export function SourceCard({ source, query, onSummarize, dense = false }: Source
140142
</a>
141143
<OverflowText
142144
label={meta.join(' · ')}
143-
className='max-w-[40%] shrink-0 text-[var(--text-muted)] text-caption'
145+
className='max-w-[40%] shrink-0 text-[var(--text-tertiary)] text-caption'
144146
/>
145147
<SourceActions source={source} />
146148
</div>
@@ -160,7 +162,7 @@ export function SourceCard({ source, query, onSummarize, dense = false }: Source
160162
rel='noopener noreferrer'
161163
data-source-link=''
162164
onClick={(event) => handleExternalLinkClick(event, source.url)}
163-
className='min-w-0 flex-1 text-[var(--text-body)] text-small no-underline [overflow-wrap:anywhere] focus-visible:rounded-sm focus-visible:outline focus-visible:outline-[var(--text-icon)]'
165+
className='min-w-0 flex-1 text-[var(--text-primary)] text-small no-underline [overflow-wrap:anywhere] focus-visible:rounded-sm focus-visible:outline focus-visible:outline-[var(--text-icon)]'
164166
>
165167
{sourceLabel(source)}
166168
</a>
@@ -171,7 +173,7 @@ export function SourceCard({ source, query, onSummarize, dense = false }: Source
171173
<div className='flex min-w-0 flex-col gap-1 pl-6'>
172174
<OverflowText
173175
label={meta.join(' · ')}
174-
className='text-[var(--text-muted)] text-caption'
176+
className='text-[var(--text-tertiary)] text-caption'
175177
/>
176178
{source.snippet && (
177179
<p className='text-[var(--text-body)] text-small [overflow-wrap:anywhere]'>

‎apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/source-chip/source-icon.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function SourceIcon({ source, size = 'default' }: SourceIconProps) {
3838
if (hostname && failedHostname !== hostname) {
3939
return (
4040
<img
41-
src={faviconUrl(hostname, 32)}
41+
src={faviconUrl(hostname, 64)}
4242
alt=''
4343
className={cn(className, 'rounded-sm')}
4444
onError={() => setFailedHostname(hostname)}

0 commit comments

Comments
 (0)