mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-06 02:34:21 +00:00
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:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user