Skip to content

Commit dedce37

Browse files
HazATclaude
andcommitted
refactor(agent-skills): condense callout to single-line layout
Redesign the callout to fit title, prompt, and copy button on one row. Remove the Recommended badge. Smaller padding and font sizes throughout. Description and View docs link sit in a compact sub-row below. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent fe1e3de commit dedce37

File tree

2 files changed

+42
-76
lines changed

2 files changed

+42
-76
lines changed

src/components/agentSkillsCallout/index.tsx

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -78,22 +78,16 @@ export function AgentSkillsCallout({skill, platformName}: Props) {
7878
);
7979

8080
const description = platformName
81-
? `Your agent will analyze your codebase, detect your stack, and set up Sentry in your ${platformName} app automatically.`
82-
: 'Your agent will analyze your codebase, detect your stack, and set up Sentry automatically.';
81+
? `Your agent will set up Sentry in your ${platformName} app automatically.`
82+
: 'Your agent will set up Sentry automatically.';
8383

8484
return (
8585
<div className={styles.wrapper} data-mdast="ignore">
86-
<div className={styles.header}>
87-
<div className={styles.titleRow}>
86+
<div className={styles.mainRow}>
87+
<div className={styles.left}>
8888
<span className={styles.title}>Agent-Assisted Setup</span>
89-
<span className={styles.badge}>Recommended</span>
9089
</div>
91-
</div>
92-
93-
<p className={styles.subtitle}>Paste this into your coding agent</p>
94-
95-
<div className={styles.promptRow}>
96-
<div className={styles.promptBox}>
90+
<div className={styles.promptArea}>
9791
<code className={styles.promptText}>{prompt}</code>
9892
</div>
9993
<button className={styles.copyButton} onClick={copyPrompt} type="button">
@@ -102,7 +96,7 @@ export function AgentSkillsCallout({skill, platformName}: Props) {
10296
</button>
10397
</div>
10498

105-
<div className={styles.footer}>
99+
<div className={styles.subRow}>
106100
<span className={styles.description}>
107101
{description} Works with Cursor, Claude Code, Codex, and more.
108102
</span>
Lines changed: 36 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.wrapper {
22
margin-bottom: 1rem;
3-
padding: 1rem 1.25rem;
3+
padding: 0.65rem 1rem;
44
border-radius: 8px;
55
border: 1px solid color-mix(in srgb, var(--accent-purple), transparent 60%);
66
background: color-mix(in srgb, var(--accent-purple), transparent 92%);
@@ -12,71 +12,43 @@
1212
color: var(--desatPurple15);
1313
}
1414

15-
.header {
16-
margin-bottom: 0.5rem;
15+
.mainRow {
16+
display: flex;
17+
align-items: center;
18+
gap: 0.75rem;
1719
}
1820

19-
.titleRow {
21+
.left {
2022
display: flex;
2123
align-items: center;
22-
gap: 0.5rem;
24+
gap: 0.4rem;
25+
flex-shrink: 0;
2326
}
2427

2528
.title {
2629
font-weight: 600;
27-
font-size: 1rem;
28-
}
29-
30-
.badge {
31-
font-size: 0.7rem;
32-
font-weight: 600;
33-
text-transform: uppercase;
34-
letter-spacing: 0.03em;
35-
padding: 0.15rem 0.5rem;
36-
border-radius: 999px;
37-
border: 1px solid var(--accent-purple);
38-
color: var(--accent-purple);
39-
line-height: 1.3;
40-
}
41-
42-
:global(.dark) .badge {
43-
color: var(--accent-purple-light);
44-
border-color: var(--accent-purple-light);
45-
}
46-
47-
.subtitle {
48-
font-size: 0.85rem;
49-
opacity: 0.7;
50-
margin: 0 0 0.6rem;
51-
}
52-
53-
.promptRow {
54-
display: flex;
55-
align-items: stretch;
56-
gap: 0.5rem;
57-
margin-bottom: 0.75rem;
30+
font-size: 0.9rem;
31+
white-space: nowrap;
5832
}
5933

60-
.promptBox {
34+
.promptArea {
6135
flex: 1;
6236
min-width: 0;
6337
background: var(--gray-100);
6438
border: 1px solid var(--gray-200);
65-
border-radius: 6px;
66-
padding: 0.55rem 0.75rem;
67-
display: flex;
68-
align-items: center;
39+
border-radius: 5px;
40+
padding: 0.35rem 0.6rem;
6941
overflow-x: auto;
7042
}
7143

72-
:global(.dark) .promptBox {
73-
background: var(--desatPurple0);
44+
:global(.dark) .promptArea {
45+
background: color-mix(in srgb, var(--desatPurple0), transparent 20%);
7446
border-color: var(--desatPurple3);
7547
}
7648

7749
.promptText {
7850
font-family: var(--font-family-monospace);
79-
font-size: 0.82rem;
51+
font-size: 0.78rem;
8052
white-space: nowrap;
8153
color: inherit;
8254
background: none;
@@ -87,16 +59,17 @@
8759
.copyButton {
8860
display: flex;
8961
align-items: center;
90-
gap: 0.4rem;
91-
padding: 0.5rem 1rem;
62+
gap: 0.35rem;
63+
padding: 0.35rem 0.75rem;
9264
border: 1px solid var(--gray-200);
93-
border-radius: 6px;
65+
border-radius: 5px;
9466
background: var(--white);
9567
color: var(--gray-500);
96-
font-size: 0.82rem;
68+
font-size: 0.78rem;
9769
font-weight: 500;
9870
white-space: nowrap;
9971
cursor: pointer;
72+
flex-shrink: 0;
10073
transition:
10174
background-color 150ms,
10275
border-color 150ms;
@@ -126,23 +99,22 @@
12699
}
127100
}
128101

129-
.footer {
102+
.subRow {
130103
display: flex;
131104
align-items: baseline;
132105
justify-content: space-between;
133-
gap: 1rem;
134-
margin-bottom: 0.25rem;
106+
gap: 0.75rem;
107+
margin-top: 0.35rem;
135108
flex-wrap: wrap;
136109
}
137110

138111
.description {
139-
font-size: 0.8rem;
140-
opacity: 0.7;
141-
line-height: 1.5;
112+
font-size: 0.75rem;
113+
opacity: 0.6;
142114
}
143115

144116
.viewDocs {
145-
font-size: 0.8rem;
117+
font-size: 0.75rem;
146118
color: var(--accent-purple);
147119
text-decoration: none;
148120
white-space: nowrap;
@@ -158,22 +130,22 @@
158130
}
159131

160132
.expandSection {
161-
margin-top: 0.75rem;
133+
margin-top: 0.35rem;
162134
border-top: 1px solid color-mix(in srgb, var(--accent-purple), transparent 70%);
163-
margin-bottom: -0.8rem;
135+
margin-bottom: -0.5rem;
164136
}
165137

166138
.expandSummary {
167139
display: flex;
168140
align-items: center;
169-
gap: 0.35rem;
141+
gap: 0.3rem;
170142
cursor: pointer;
171-
font-size: 0.85rem;
143+
font-size: 0.78rem;
172144
font-weight: 500;
173-
opacity: 0.7;
145+
opacity: 0.6;
174146
list-style: none;
175147
user-select: none;
176-
padding: 0.6rem 0;
148+
padding: 0.4rem 0;
177149

178150
&::-webkit-details-marker {
179151
display: none;
@@ -190,8 +162,8 @@
190162
}
191163

192164
.expandIcon {
193-
width: 14px;
194-
height: 14px;
165+
width: 13px;
166+
height: 13px;
195167
flex-shrink: 0;
196168
}
197169

@@ -200,7 +172,7 @@
200172
padding-bottom: 0.25rem;
201173

202174
& p {
203-
font-size: 0.85rem;
175+
font-size: 0.8rem;
204176
margin-bottom: 0.5rem;
205177
}
206178
}

0 commit comments

Comments
 (0)