Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(editor): make issue mention card fit within text line height

Naiyuan Qingf34ed091e738
diff --git a/apps/web/features/editor/content-editor.css b/apps/web/features/editor/content-editor.css
index 1db9466f6f..8b0fc2ba7a 100644
--- a/apps/web/features/editor/content-editor.css
+++ b/apps/web/features/editor/content-editor.css
@@ -297,10 +297,11 @@
text-underline-offset: 2px;
}
-/* Issue mention cards — override link styling */
+/* Issue mention cards — inline cards that sit within text flow */
.rich-text-editor a.issue-mention {
color: inherit;
text-decoration: none;
+ vertical-align: middle;
}
.rich-text-editor a.issue-mention:hover {
diff --git a/apps/web/features/editor/extensions/mention-view.tsx b/apps/web/features/editor/extensions/mention-view.tsx
index 126e80fdcc..2827762b49 100644
--- a/apps/web/features/editor/extensions/mention-view.tsx
+++ b/apps/web/features/editor/extensions/mention-view.tsx
@@ -54,7 +54,7 @@ function IssueMention({
<a
href={`/issues/${issueId}`}
onClick={handleClick}
- className="issue-mention inline-flex items-center align-text-bottom gap-2 rounded-md border mx-0.5 px-2.5 py-0.5 text-sm hover:bg-accent transition-colors cursor-pointer"
+ className="issue-mention inline-flex items-center gap-2 rounded-md border mx-0.5 px-2.5 py-px text-xs leading-relaxed hover:bg-accent transition-colors cursor-pointer"
>
<StatusIcon status={issue.status} className="h-3.5 w-3.5" />
<span className="font-medium text-muted-foreground">{issue.identifier}</span>