diff --git a/public/content.css b/public/content.css index 4c15212e..35b82766 100644 --- a/public/content.css +++ b/public/content.css @@ -633,4 +633,17 @@ input::-webkit-inner-spin-button { .sponsorBlockCategoryPillTitleSection { display: flex; align-items: center; +} + +.categoryPillClose { + display: none; + height: 10px; + width: 10px; + box-sizing: unset; + + margin: 0px 0px 0px 5px; +} + +.sponsorBlockCategoryPill:hover .categoryPillClose { + display: inherit; } \ No newline at end of file diff --git a/src/components/CategoryPillComponent.tsx b/src/components/CategoryPillComponent.tsx index 6c7e0437..eae106fd 100644 --- a/src/components/CategoryPillComponent.tsx +++ b/src/components/CategoryPillComponent.tsx @@ -72,6 +72,12 @@ class CategoryPillComponent extends React.Component )} + + {/* Close Button */} + this.setState({ show: false })}> + ); }