From 758f0b7526f5e3774fa723433c7cbc47d21badd5 Mon Sep 17 00:00:00 2001 From: Ajay Date: Fri, 10 Mar 2023 03:49:01 -0500 Subject: Show Full-Video Labels on thumbnails Co-authored-by: mini-bomba --- src/js-components/previewBar.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/js-components/previewBar.ts') 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"; -- cgit v1.2.3