style: Make marketplace tags scrollable (#1857)

* Make marketplace tags scrollable

* Changeset
This commit is contained in:
Frostbourne 2025-02-27 15:54:51 -08:00 committed by GitHub
parent 39980e9be7
commit db4f6a72c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
"claude-dev": patch
---
Make tags section in marketplace scrollable

View file

@ -223,8 +223,16 @@ const McpMarketplaceCard = ({ item, installedServers }: McpMarketplaceCardProps)
display: "flex",
gap: "6px",
flexWrap: "nowrap",
overflow: "hidden",
overflowX: "auto",
scrollbarWidth: "none",
position: "relative",
}}
onScroll={(e) => {
const target = e.currentTarget
const gradient = target.querySelector(".tags-gradient") as HTMLElement
if (gradient) {
gradient.style.visibility = target.scrollLeft > 0 ? "hidden" : "visible"
}
}}>
<span
style={{
@ -254,6 +262,7 @@ const McpMarketplaceCard = ({ item, installedServers }: McpMarketplaceCardProps)
</span>
))}
<div
className="tags-gradient"
style={{
position: "absolute",
right: 0,