Skip to content

Commit f6b9357

Browse files
committed
Fix icon alignment for Tools & Libraries and Agent Resources
- Replace toolbox icon with screwdriver-wrench for better optical centering - Replace sparkles/brain icon with robot for symmetric alignment - Update icons in overview.mdx, tools-and-libraries.mdx, and docs.json sidebar - Add CSS for card and sidebar icon vertical centering
1 parent 2eccb85 commit f6b9357

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

docs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"make-your-first-request",
2626
{
2727
"group": "Tools & Libraries",
28-
"icon": "toolbox",
28+
"icon": "screwdriver-wrench",
2929
"pages": [
3030
"tools-and-libraries",
3131
"tools/xurl",

overview.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,13 @@ Earn free [xAI API](https://docs.x.ai) credits when you purchase X API credits
7777
<Card title="Tutorials" icon="book" href="/tutorials">
7878
Step-by-step guides for common use cases and integrations.
7979
</Card>
80-
<Card title="Tools & Libraries" icon="toolbox" href="/tools-and-libraries">
80+
<Card title="Tools & Libraries" icon="screwdriver-wrench" href="/tools-and-libraries">
8181
Official SDKs and community libraries for every language.
8282
</Card>
8383
<Card title="Developer Forum" icon="comments" href="https://devcommunity.x.com">
8484
Get help from the community and X team.
8585
</Card>
86-
<Card title="Agent Resources" icon="sparkles" href="/tools/ai">
86+
<Card title="Agent Resources" icon="robot" href="/tools/ai">
8787
llms.txt, skill.md, MCP servers, and resources for AI-powered development.
8888
</Card>
8989
</CardGroup>

style.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,3 +163,11 @@ td[data-label="Free Limit"] strong {
163163
.dark #usage-slider::-moz-range-thumb {
164164
background: #0B0C0E;
165165
}
166+
167+
/* Fix card and sidebar icon vertical centering with adjacent text */
168+
#sidebar-content button > svg:first-of-type {
169+
align-self: center;
170+
}
171+
.group\/card .flex {
172+
align-items: center;
173+
}

tools-and-libraries.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ console.log(userResponse.data?.username);
7474
<Card title="API Playground" icon="flask" href="https://github.com/xdevplatform/playground">
7575
Local mock server for testing X API v2 endpoints without using real credits.
7676
</Card>
77-
<Card title="Agent Resources" icon="sparkles" href="/tools/ai">
77+
<Card title="Agent Resources" icon="robot" href="/tools/ai">
7878
XMCP, llms.txt, skill.md, docs MCP server, and resources for AI-powered development.
7979
</Card>
8080
</CardGroup>

0 commit comments

Comments
 (0)