Skip to content

Commit 5b1c3aa

Browse files
loganjLarryclaude
committed
fix(agents): keep a card link's fallback initial on the text line
The link icon aligned on its content's baseline. A loaded picture is absolutely positioned and gives no baseline, so the tile's bottom edge aligns. A fallback initial is text, so its baseline aligned instead and the tile dropped about 4px below the line. Layout containment makes the icon align on its bottom edge in both cases. Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Logan Johnson <[email protected]>
1 parent 4ea7e7d commit 5b1c3aa

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎src/bundled/agents/AgentCardLink.module.css‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
display: inline-flex;
33
margin-right: calc(var(--space-half) * 1.5);
44
vertical-align: -0.1875em;
5+
/* Align on the tile's bottom edge, not on a fallback initial's baseline:
6+
the initial is text, a picture is not, and the tile would drop. */
7+
contain: layout;
58
}
69
/* A card's picture is transparent artwork: show it on the message or hover
710
card itself, without the avatar's backdrop or squircle mask. A fallback

0 commit comments

Comments
 (0)