Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions apps/web/src/components/ComposerPromptEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ class ComposerMentionNode extends DecoratorNode<React.ReactElement> {

override createDOM(): HTMLElement {
const dom = document.createElement("span");
dom.className = "composer-inline-chip relative inline-flex align-middle leading-none";
dom.className = "composer-inline-chip relative inline-flex align-[-0.125em] leading-none";
return dom;
}

Expand Down Expand Up @@ -326,7 +326,7 @@ class ComposerSkillNode extends DecoratorNode<React.ReactElement> {

override createDOM(): HTMLElement {
const dom = document.createElement("span");
dom.className = "composer-inline-chip relative inline-flex align-middle leading-none";
dom.className = "composer-inline-chip relative inline-flex align-[-0.125em] leading-none";
return dom;
}

Expand Down Expand Up @@ -397,7 +397,7 @@ class ComposerTerminalContextNode extends DecoratorNode<React.ReactElement> {

override createDOM(): HTMLElement {
const dom = document.createElement("span");
dom.className = "composer-inline-chip relative inline-flex align-middle leading-none";
dom.className = "composer-inline-chip relative inline-flex align-[-0.125em] leading-none";
return dom;
}

Expand Down
4 changes: 3 additions & 1 deletion apps/web/src/components/composerInlineChip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ export const COMPOSER_INLINE_CHIP_ICON_CLASS_NAME = "size-[1.17em] shrink-0 opac

export const CHAT_INLINE_CHIP_LABEL_CLASS_NAME = "truncate leading-tight";

export const COMPOSER_INLINE_CHIP_LABEL_CLASS_NAME = `${CHAT_INLINE_CHIP_LABEL_CLASS_NAME} select-none`;
// The composer label is smaller than the surrounding prompt text; offset its
// glyphs without moving the pill box or changing the editor's line height.
export const COMPOSER_INLINE_CHIP_LABEL_CLASS_NAME = `${CHAT_INLINE_CHIP_LABEL_CLASS_NAME} relative top-[0.15em] select-none`;
Comment thread
cursor[bot] marked this conversation as resolved.
Outdated

export const COMPOSER_INLINE_SKILL_CHIP_CLASS_NAME =
"inline-flex max-w-full select-none items-center gap-[0.33em] rounded-[0.5em] border border-fuchsia-500/25 bg-fuchsia-500/12 px-[0.5em] py-[0.08em] font-medium text-[0.86em] leading-[1.1] text-fuchsia-700 align-middle dark:text-fuchsia-300";
Expand Down
Loading