Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): align composer inline chips with prompt text #5495

MergedStiensWout(GitHub profile, opens in a new tab)merged 3 commits intomain fromrefs/pull/5495/headmerged by maria-rcks View on GitHub

Showing 2 changed files with 9 additions and 5 deletions.

x
0 of 2 viewed, 2 left
5 additions and 5 deletionsapps/web/src/components/ComposerPromptEditor.tsxModified
View file
@@ -72,8 +72,8 @@
import { basenameOfPath } from "~/pierre-icons";
import {
COMPOSER_INLINE_CHIP_ICON_CLASS_NAME,
- COMPOSER_INLINE_CHIP_LABEL_CLASS_NAME,
COMPOSER_INLINE_SKILL_CHIP_CLASS_NAME,
+ COMPOSER_INLINE_SKILL_CHIP_LABEL_CLASS_NAME,
SKILL_CHIP_ICON_SVG,
} from "./composerInlineChip";
import { FILE_TAG_CHIP_CLASS_NAME, FileTagChipContent } from "./chat/FileTagChip";
@@ -188,7 +188,7 @@
​
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;
​
@@ -256,7 +256,7 @@
className={COMPOSER_INLINE_CHIP_ICON_CLASS_NAME}
dangerouslySetInnerHTML={{ __html: SKILL_CHIP_ICON_SVG }}
- <span className={COMPOSER_INLINE_CHIP_LABEL_CLASS_NAME}>{props.skillLabel}</span>
+ <span className={COMPOSER_INLINE_SKILL_CHIP_LABEL_CLASS_NAME}>{props.skillLabel}</span>
</span>
​