Skip to content

Commit e0b3cfe

Browse files
authored
fix(web): image and file chips underline their name on hover again (pingdotgg#26252)
1 parent 67661cf commit e0b3cfe

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎apps/web/src/components/contextChipParts.tsx‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ export function ImageChipButton({
167167
<ImageIcon />
168168
)}
169169
<ContextChipLabel className="flex items-baseline gap-[0.33em]">
170-
<span className="max-w-72 truncate">{middleTruncateAttachmentName(name)}</span>
170+
<span className="min-w-0 max-w-72 overflow-x-clip text-ellipsis whitespace-nowrap">
171+
{middleTruncateAttachmentName(name)}
172+
</span>
171173
<span className="shrink-0 text-3xs text-current">{size}</span>
172174
{suffix ? <span className="text-3xs text-current">{suffix}</span> : null}
173175
</ContextChipLabel>
@@ -314,7 +316,9 @@ function FileChipContent(props: {
314316
<PierreEntryIcon pathValue={props.name} kind="file" theme={props.theme} />
315317
)}
316318
<ContextChipLabel className="flex items-baseline gap-[0.33em]">
317-
<span className="max-w-72 truncate">{middleTruncateAttachmentName(props.name)}</span>
319+
<span className="min-w-0 max-w-72 overflow-x-clip text-ellipsis whitespace-nowrap">
320+
{middleTruncateAttachmentName(props.name)}
321+
</span>
318322
<span className="shrink-0 text-3xs text-current">{props.size}</span>
319323
{props.suffix ? <span className="text-3xs text-current">{props.suffix}</span> : null}
320324
</ContextChipLabel>

0 commit comments

Comments
 (0)