Skip to content

Commit d8e2456

Browse files
committed
Fix Inter agent mention icon alignment
1 parent 7d128cf commit d8e2456

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎desktop/src/shared/styles/globals.css‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,6 @@
619619
--inline-code-font-size: var(--text-xs);
620620
--agent-icon-size: 0.95em;
621621
--agent-icon-gap: 0.125rem;
622-
--agent-icon-top: 0.125rem;
623622
}
624623

625624
.message-markdown .mention-chip,
@@ -702,12 +701,13 @@
702701
.message-markdown .agent-mention-highlight::before {
703702
content: "";
704703
position: absolute;
705-
top: var(--agent-icon-top);
704+
top: 50%;
706705
left: var(--inline-chip-padding-inline);
707706
width: var(--agent-icon-size);
708707
height: var(--agent-icon-size);
709708
background: currentColor;
710709
pointer-events: none;
710+
transform: translateY(-50%);
711711
-webkit-mask:
712712
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 8V4H8'/%3E%3Crect width='16' height='12' x='4' y='8' rx='2'/%3E%3Cpath d='M2 14h2'/%3E%3Cpath d='M20 14h2'/%3E%3Cpath d='M15 13v2'/%3E%3Cpath d='M9 13v2'/%3E%3C/svg%3E")
713713
center / contain no-repeat;

0 commit comments

Comments
 (0)