Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion resources/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -538,5 +538,11 @@
"description": "Transforms the player into a pill with glassy effect, and rounded corners for library icons.",
"code": ".Root__right-sidebar .cover-art,.main-nowPlayingView-coverArtContainer .cover-art,.main-nowPlayingView-coverArtContainer div[style*=background]{background:0 0!important;border-radius:50%!important;opacity:1!important}.Root__right-sidebar .cover-art::after,.Root__right-sidebar .cover-art::before,.main-nowPlayingView-coverArtContainer .cover-art::after,.main-nowPlayingView-coverArtContainer .cover-art::before{display:none!important;content:none!important}.Root__right-sidebar img,.main-nowPlayingView-coverArtContainer img{border-radius:50%!important;visibility:visible!important;opacity:1!important;display:block!important}.Root__now-playing-bar,.main-nowPlayingBar-container{border-radius:99px!important;overflow:hidden!important;margin:12px!important;width:calc(100% - 24px)!important;box-shadow:0 10px 30px rgba(0,0,0,.5)!important;z-index:9999!important;backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important;background-color:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.1)!important}footer.main-nowPlayingBar-nowPlayingBar{border-radius:99px!important}.main-nowPlayingBar-left *{box-shadow:none!important;-webkit-box-shadow:none!important;filter:none!important;-webkit-filter:none!important}.main-nowPlayingBar-left .main-coverSlot-container,.main-nowPlayingBar-left .main-coverSlot-expanded{box-shadow:none!important;background:0 0!important}.main-nowPlayingBar-left canvas{display:none!important}.main-nowPlayingBar-left canvas[class*=cover],.main-nowPlayingBar-left canvas[style*=transform]{display:block!important}.main-yourLibraryX-listItemImage,.main-yourLibraryX-listItemImage>div,.x-entityImage-imageContainer{border-radius:8px!important;-webkit-mask-image:none!important;mask-image:none!important;background-color:transparent!important;overflow:hidden!important}.main-yourLibraryX-listItemImage img,.x-entityImage-image{border-radius:8px!important;-webkit-mask-image:none!important;mask-image:none!important;border:none!important;width:100%!important;height:100%!important;aspect-ratio:1/1!important;object-fit:cover!important}[class*=rounded-full],[style*=\"border-radius: 50%\"]{border-radius:8px!important}.Root__main-view,.Root__nav-bar,.Root__right-sidebar,.os-host-overflow,.os-padding,div[data-testid=main-view-container]{border-radius:24px!important;overflow:hidden!important}.main-card-card,.main-cardImage-imageWrapper,.view-home-shortcut{border-radius:12px!important;overflow:hidden!important}:root{--spice-card:var(--spice-main-elevated)!important}",
"preview": "resources/assets/snippets/Pill-Player-Bar.png"
}
},
{
"title": "Minimal 4-Bar Visualizer",
"description": "A minimalist, CSS-only 4-bar visualizer for the playback bar.",
"code": ":root { --viz-color: var(--spice-button-active); --viz-speed: 0.8s; --viz-width: 18px; --viz-height: 20px; --viz-bar-w: 3px; --viz-off-y: -4px; } .main-nowPlayingBar-extraControls::before { content: ""; display: flex; width: var(--viz-width); height: var(--viz-height); margin-right: 15px; transform: translateY(var(--viz-off-y)); background-image: linear-gradient(var(--viz-color), var(--viz-color)), linear-gradient(var(--viz-color), var(--viz-color)), linear-gradient(var(--viz-color), var(--viz-color)), linear-gradient(var(--viz-color), var(--viz-color)); background-position: 0% 100%, 33% 100%, 66% 100%, 100% 100%; background-repeat: no-repeat; background-size: var(--viz-bar-w) 40%, var(--viz-bar-w) 80%, var(--viz-bar-w) 30%, var(--viz-bar-w) 60%; animation: organicBounce var(--viz-speed) infinite linear; transition: background-size 0.3s ease; } @keyframes organicBounce { 0% { background-size: var(--viz-bar-w) 70%, var(--viz-bar-w) 100%, var(--viz-bar-w) 10%, var(--viz-bar-w) 40%; } 9% { background-size: var(--viz-bar-w) 85%, var(--viz-bar-w) 85%, var(--viz-bar-w) 25%, var(--viz-bar-w) 55%; } 18% { background-size: var(--viz-bar-w) 100%, var(--viz-bar-w) 70%, var(--viz-bar-w) 40%, var(--viz-bar-w) 70%; } 27% { background-size: var(--viz-bar-w) 85%, var(--viz-bar-w) 55%, var(--viz-bar-w) 55%, var(--viz-bar-w) 85%; } 36% { background-size: var(--viz-bar-w) 70%, var(--viz-bar-w) 40%, var(--viz-bar-w) 70%, var(--viz-bar-w) 100%; } 45% { background-size: var(--viz-bar-w) 55%, var(--viz-bar-w) 25%, var(--viz-bar-w) 85%, var(--viz-bar-w) 85%; } 54% { background-size: var(--viz-bar-w) 40%, var(--viz-bar-w) 10%, var(--viz-bar-w) 100%, var(--viz-bar-w) 70%; } 63% { background-size: var(--viz-bar-w) 25%, var(--viz-bar-w) 25%, var(--viz-bar-w) 85%, var(--viz-bar-w) 55%; } 72% { background-size: var(--viz-bar-w) 10%, var(--viz-bar-w) 40%, var(--viz-bar-w) 70%, var(--viz-bar-w) 40%; } 81% { background-size: var(--viz-bar-w) 25%, var(--viz-bar-w) 55%, var(--viz-bar-w) 55%, var(--viz-bar-w) 25%; } 90% { background-size: var(--viz-bar-w) 40%, var(--viz-bar-w) 70%, var(--viz-bar-w) 40%, var(--viz-bar-w) 10%; } 100% { background-size: var(--viz-bar-w) 55%, var(--viz-bar-w) 85%, var(--viz-bar-w) 25%, var(--viz-bar-w) 25%; } } .main-nowPlayingBar-container:has( button[data-testid="control-button-playpause"] path[d^="M3"], button[data-testid="control-button-playpause"] path[d^="M11"], button[aria-label*="Play"] ) .main-nowPlayingBar-extraControls::before { background-size: var(--viz-bar-w) 2px, var(--viz-bar-w) 2px, var(--viz-bar-w) 2px, var(--viz-bar-w) 2px !important; animation: none !important; opacity: 0.8; }",
"preview": "preview.gif"
}
Comment on lines 542 to 547
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Fix the preview asset path to follow project conventions.

The preview path is inconsistent with all other snippets in this file. Every other snippet uses the format resources/assets/snippets/[descriptive-name].[ext], but this one uses just preview.gif. This will likely result in a broken preview image in the Marketplace UI.

🔎 Suggested fix
-    "preview": "preview.gif"
+    "preview": "resources/assets/snippets/minimal-4-bar-visualizer.gif"

Make sure the actual preview asset file is placed at the correct path in the repository.

Note: The CSS code is correctly minified as a single-line string per project requirements. Based on learnings, this is the expected format for the "code" field.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
{
"title": "Minimal 4-Bar Visualizer",
"description": "A minimalist, CSS-only 4-bar visualizer for the playback bar.",
"code": ":root { --viz-color: var(--spice-button-active); --viz-speed: 0.8s; --viz-width: 18px; --viz-height: 20px; --viz-bar-w: 3px; --viz-off-y: -4px; } .main-nowPlayingBar-extraControls::before { content: ""; display: flex; width: var(--viz-width); height: var(--viz-height); margin-right: 15px; transform: translateY(var(--viz-off-y)); background-image: linear-gradient(var(--viz-color), var(--viz-color)), linear-gradient(var(--viz-color), var(--viz-color)), linear-gradient(var(--viz-color), var(--viz-color)), linear-gradient(var(--viz-color), var(--viz-color)); background-position: 0% 100%, 33% 100%, 66% 100%, 100% 100%; background-repeat: no-repeat; background-size: var(--viz-bar-w) 40%, var(--viz-bar-w) 80%, var(--viz-bar-w) 30%, var(--viz-bar-w) 60%; animation: organicBounce var(--viz-speed) infinite linear; transition: background-size 0.3s ease; } @keyframes organicBounce { 0% { background-size: var(--viz-bar-w) 70%, var(--viz-bar-w) 100%, var(--viz-bar-w) 10%, var(--viz-bar-w) 40%; } 9% { background-size: var(--viz-bar-w) 85%, var(--viz-bar-w) 85%, var(--viz-bar-w) 25%, var(--viz-bar-w) 55%; } 18% { background-size: var(--viz-bar-w) 100%, var(--viz-bar-w) 70%, var(--viz-bar-w) 40%, var(--viz-bar-w) 70%; } 27% { background-size: var(--viz-bar-w) 85%, var(--viz-bar-w) 55%, var(--viz-bar-w) 55%, var(--viz-bar-w) 85%; } 36% { background-size: var(--viz-bar-w) 70%, var(--viz-bar-w) 40%, var(--viz-bar-w) 70%, var(--viz-bar-w) 100%; } 45% { background-size: var(--viz-bar-w) 55%, var(--viz-bar-w) 25%, var(--viz-bar-w) 85%, var(--viz-bar-w) 85%; } 54% { background-size: var(--viz-bar-w) 40%, var(--viz-bar-w) 10%, var(--viz-bar-w) 100%, var(--viz-bar-w) 70%; } 63% { background-size: var(--viz-bar-w) 25%, var(--viz-bar-w) 25%, var(--viz-bar-w) 85%, var(--viz-bar-w) 55%; } 72% { background-size: var(--viz-bar-w) 10%, var(--viz-bar-w) 40%, var(--viz-bar-w) 70%, var(--viz-bar-w) 40%; } 81% { background-size: var(--viz-bar-w) 25%, var(--viz-bar-w) 55%, var(--viz-bar-w) 55%, var(--viz-bar-w) 25%; } 90% { background-size: var(--viz-bar-w) 40%, var(--viz-bar-w) 70%, var(--viz-bar-w) 40%, var(--viz-bar-w) 10%; } 100% { background-size: var(--viz-bar-w) 55%, var(--viz-bar-w) 85%, var(--viz-bar-w) 25%, var(--viz-bar-w) 25%; } } .main-nowPlayingBar-container:has( button[data-testid="control-button-playpause"] path[d^="M3"], button[data-testid="control-button-playpause"] path[d^="M11"], button[aria-label*="Play"] ) .main-nowPlayingBar-extraControls::before { background-size: var(--viz-bar-w) 2px, var(--viz-bar-w) 2px, var(--viz-bar-w) 2px, var(--viz-bar-w) 2px !important; animation: none !important; opacity: 0.8; }",
"preview": "preview.gif"
}
{
"title": "Minimal 4-Bar Visualizer",
"description": "A minimalist, CSS-only 4-bar visualizer for the playback bar.",
"code": ":root { --viz-color: var(--spice-button-active); --viz-speed: 0.8s; --viz-width: 18px; --viz-height: 20px; --viz-bar-w: 3px; --viz-off-y: -4px; } .main-nowPlayingBar-extraControls::before { content: ""; display: flex; width: var(--viz-width); height: var(--viz-height); margin-right: 15px; transform: translateY(var(--viz-off-y)); background-image: linear-gradient(var(--viz-color), var(--viz-color)), linear-gradient(var(--viz-color), var(--viz-color)), linear-gradient(var(--viz-color), var(--viz-color)), linear-gradient(var(--viz-color), var(--viz-color)); background-position: 0% 100%, 33% 100%, 66% 100%, 100% 100%; background-repeat: no-repeat; background-size: var(--viz-bar-w) 40%, var(--viz-bar-w) 80%, var(--viz-bar-w) 30%, var(--viz-bar-w) 60%; animation: organicBounce var(--viz-speed) infinite linear; transition: background-size 0.3s ease; } @keyframes organicBounce { 0% { background-size: var(--viz-bar-w) 70%, var(--viz-bar-w) 100%, var(--viz-bar-w) 10%, var(--viz-bar-w) 40%; } 9% { background-size: var(--viz-bar-w) 85%, var(--viz-bar-w) 85%, var(--viz-bar-w) 25%, var(--viz-bar-w) 55%; } 18% { background-size: var(--viz-bar-w) 100%, var(--viz-bar-w) 70%, var(--viz-bar-w) 40%, var(--viz-bar-w) 70%; } 27% { background-size: var(--viz-bar-w) 85%, var(--viz-bar-w) 55%, var(--viz-bar-w) 55%, var(--viz-bar-w) 85%; } 36% { background-size: var(--viz-bar-w) 70%, var(--viz-bar-w) 40%, var(--viz-bar-w) 70%, var(--viz-bar-w) 100%; } 45% { background-size: var(--viz-bar-w) 55%, var(--viz-bar-w) 25%, var(--viz-bar-w) 85%, var(--viz-bar-w) 85%; } 54% { background-size: var(--viz-bar-w) 40%, var(--viz-bar-w) 10%, var(--viz-bar-w) 100%, var(--viz-bar-w) 70%; } 63% { background-size: var(--viz-bar-w) 25%, var(--viz-bar-w) 25%, var(--viz-bar-w) 85%, var(--viz-bar-w) 55%; } 72% { background-size: var(--viz-bar-w) 10%, var(--viz-bar-w) 40%, var(--viz-bar-w) 70%, var(--viz-bar-w) 40%; } 81% { background-size: var(--viz-bar-w) 25%, var(--viz-bar-w) 55%, var(--viz-bar-w) 55%, var(--viz-bar-w) 25%; } 90% { background-size: var(--viz-bar-w) 40%, var(--viz-bar-w) 70%, var(--viz-bar-w) 40%, var(--viz-bar-w) 10%; } 100% { background-size: var(--viz-bar-w) 55%, var(--viz-bar-w) 85%, var(--viz-bar-w) 25%, var(--viz-bar-w) 25%; } } .main-nowPlayingBar-container:has( button[data-testid="control-button-playpause"] path[d^="M3"], button[data-testid="control-button-playpause"] path[d^="M11"], button[aria-label*="Play"] ) .main-nowPlayingBar-extraControls::before { background-size: var(--viz-bar-w) 2px, var(--viz-bar-w) 2px, var(--viz-bar-w) 2px, var(--viz-bar-w) 2px !important; animation: none !important; opacity: 0.8; }",
"preview": "resources/assets/snippets/minimal-4-bar-visualizer.gif"
}
🤖 Prompt for AI Agents
In resources/snippets.json around lines 542 to 547, the "preview" field uses
"preview.gif" which doesn't follow the project's convention and will break the
Marketplace preview; update the preview path to follow the pattern
resources/assets/snippets/[descriptive-name].[ext] (e.g.
resources/assets/snippets/minimal-4-bar-visualizer.gif) and add/place the actual
GIF at that path in the repo so the preview resolves correctly.

]
Loading