diff options
author | Ajay <[email protected]> | 2023-03-10 03:49:01 -0500 |
---|---|---|
committer | Ajay <[email protected]> | 2023-03-10 03:49:01 -0500 |
commit | 758f0b7526f5e3774fa723433c7cbc47d21badd5 (patch) | |
tree | 852a26f8f71d61aade3af35f07faabeb594f447d /src/js-components/previewBar.ts | |
parent | 3ace3b96506fbcb4648e36129bfc6e735d73d811 (diff) | |
download | SponsorBlock-758f0b7526f5e3774fa723433c7cbc47d21badd5.tar.gz SponsorBlock-758f0b7526f5e3774fa723433c7cbc47d21badd5.zip |
Show Full-Video Labels on thumbnails
Co-authored-by: mini-bomba <[email protected]>
Diffstat (limited to 'src/js-components/previewBar.ts')
-rw-r--r-- | src/js-components/previewBar.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/js-components/previewBar.ts b/src/js-components/previewBar.ts index 30d54d3a..bec83333 100644 --- a/src/js-components/previewBar.ts +++ b/src/js-components/previewBar.ts @@ -331,7 +331,8 @@ class PreviewBar { const fullCategoryName = (unsubmitted ? 'preview-' : '') + category; bar.setAttribute('sponsorblock-category', fullCategoryName); - bar.style.backgroundColor = Config.config.barTypes[fullCategoryName]?.color; + // Handled by setCategoryColorCSSVariables() of content.ts + bar.style.backgroundColor = `var(--sb-category-${fullCategoryName})`; if (!this.onMobileYouTube) bar.style.opacity = Config.config.barTypes[fullCategoryName]?.opacity; bar.style.position = "absolute"; |