🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
💄 style(skill): tighten the Skill details header and shrink its share actions (#23205)
Innei7157b954fd0f
diff --git a/src/features/AgentSkillDetail/index.tsx b/src/features/AgentSkillDetail/index.tsxindex 3da90e4445a..20579d9c729 100644--- a/src/features/AgentSkillDetail/index.tsx+++ b/src/features/AgentSkillDetail/index.tsx@@ -21,12 +21,21 @@ const styles = createStaticStyles(({ css, cssVar }) => ({margin: 0;- font-size: 13px;- line-height: 1.5;+ font-size: 12px;+ line-height: 16px;color: ${cssVar.colorTextSecondary};text-overflow: ellipsis;white-space: nowrap;`,+ /**+ * Two stacked lines whose combined height matches the 40px avatar on the+ * left, so the header block reads as one row aligned with the icon instead of+ * a loose paragraph hanging beside it.+ */+ headerText: css`+ overflow: hidden;+ height: 40px;+ `,divider: css`flex-shrink: 0;width: 1px;@@ -46,7 +55,7 @@ const styles = createStaticStyles(({ css, cssVar }) => ({name: css`font-size: 16px;font-weight: 500;- line-height: 1.4;+ line-height: 20px;color: ${cssVar.colorText};`,right: css`@@ -114,7 +123,7 @@ const AgentSkillDetail = memo<AgentSkillDetailProps>(({ skillId }) => {<div className={styles.meta}><Flexbox horizontal align={'center'} gap={12}><SkillAvatar size={40} />- <Flexbox flex={1} gap={4} style={{ overflow: 'hidden' }}>+ <Flexbox className={styles.headerText} flex={1} justify={'space-between'}><Flexbox horizontal align={'center'} gap={8} justify={'space-between'}><Flexbox horizontal align={'center'} className={styles.description} gap={4}><span className={styles.name}>{skillDetail.name}</span>@@ -138,6 +147,7 @@ const AgentSkillDetail = memo<AgentSkillDetailProps>(({ skillId }) => {<ActionIconfill={cssVar.colorTextDescription}icon={Github}+ size={'small'}title={t('agentSkillDetail.repository')}/></a>@@ -146,6 +156,7 @@ const AgentSkillDetail = memo<AgentSkillDetailProps>(({ skillId }) => {<a href={sourceUrl} rel="noreferrer" target={'_blank'}><ActionIconicon={ExternalLinkIcon}+ size={'small'}title={t('agentSkillDetail.sourceUrl')}/></a>diff --git a/src/features/SkillStore/SkillList/MarketSkills/MarketSkillDetail.tsx b/src/features/SkillStore/SkillList/MarketSkills/MarketSkillDetail.tsxindex 511a982e689..36523e19da6 100644--- a/src/features/SkillStore/SkillList/MarketSkills/MarketSkillDetail.tsx+++ b/src/features/SkillStore/SkillList/MarketSkills/MarketSkillDetail.tsx@@ -23,12 +23,20 @@ const styles = createStaticStyles(({ css, cssVar }) => ({margin: 0;- font-size: 13px;- line-height: 1.5;+ font-size: 12px;+ line-height: 16px;color: ${cssVar.colorTextSecondary};text-overflow: ellipsis;white-space: nowrap;`,+ /**+ * Two stacked lines whose combined height matches the 40px avatar on the+ * left, so the header block reads as one row aligned with the icon.+ */+ headerText: css`+ overflow: hidden;+ height: 40px;+ `,divider: css`flex-shrink: 0;width: 1px;@@ -48,7 +56,7 @@ const styles = createStaticStyles(({ css, cssVar }) => ({name: css`font-size: 16px;font-weight: 500;- line-height: 1.4;+ line-height: 20px;color: ${cssVar.colorText};`,right: css`@@ -153,7 +161,7 @@ const MarketSkillDetail = memo<MarketSkillDetailProps>(({ identifier }) => {<div className={styles.meta}><Flexbox horizontal align={'center'} gap={12}><Avatar avatar={icon || name} shape={'square'} size={40} style={{ flex: 'none' }} />- <Flexbox flex={1} gap={4} style={{ overflow: 'hidden' }}>+ <Flexbox className={styles.headerText} flex={1} justify={'space-between'}><Flexbox horizontal align={'center'} gap={8} justify={'space-between'}><Flexbox horizontal align={'center'} className={styles.description} gap={4}><span className={styles.name}>{name}</span>@@ -173,13 +181,18 @@ const MarketSkillDetail = memo<MarketSkillDetailProps>(({ identifier }) => {<ActionIconfill={cssVar.colorTextDescription}icon={Github}+ size={'small'}title={t('agentSkillDetail.repository')}/></a>)}{homepage && (<a href={homepage} rel="noreferrer" target={'_blank'}>- <ActionIcon icon={ExternalLinkIcon} title={t('agentSkillDetail.sourceUrl')} />+ <ActionIcon+ icon={ExternalLinkIcon}+ size={'small'}+ title={t('agentSkillDetail.sourceUrl')}+ /></a>)}</Flexbox>