style(collab): the title of a link chip gives way last

Two to a row, the title and the host were shrinking together into two
ellipses. The host shrinks first now, the open glyph takes the favicon's
place on hover instead of room of its own, and the actions are a touch
smaller.
This commit is contained in:
Maurice
2026-09-20 20:07:39 +02:00
parent 67dff455da
commit 6b09a8bc11
2 changed files with 21 additions and 15 deletions
+1 -1
View File
@@ -25,6 +25,7 @@ function LinkIcon({ url }: { url: string }) {
return (
<span className="collab-link-chip__icon" aria-hidden="true">
{!favicon || failed ? <Link2 size={13} /> : <img src={favicon} alt="" onError={() => setFailed(true)} />}
<span className="collab-link-chip__go"><ExternalLink size={13} /></span>
</span>
)
}
@@ -234,7 +235,6 @@ export default function CollabLinks({ tripId }: { tripId: number }) {
<span className="collab-link-chip__title">{link.title}</span>
<span className="collab-link-chip__host">{hostOf(link.url)}</span>
</span>
<ExternalLink className="collab-link-chip__open" size={12} aria-hidden="true" />
</a>
{canEdit && (
<span className="collab-link-chip__actions">