diff options
author | 2022-11-21 22:49:25 +0800 | |
---|---|---|
committer | 2022-11-21 22:49:25 +0800 | |
commit | 64ebb69b504fadfa555a4f5c9c75d9370702c930 (patch) | |
tree | d189d94a7de7990c53241b2e5788243d3af3e21c | |
parent | c7f980b26eb290639637718631cece86a862cbb2 (diff) | |
download | refined-github-64ebb69b504fadfa555a4f5c9c75d9370702c930.tar.gz refined-github-64ebb69b504fadfa555a4f5c9c75d9370702c930.tar.zst refined-github-64ebb69b504fadfa555a4f5c9c75d9370702c930.zip |
Improve `select-notifications` style (#6166)
-rw-r--r-- | source/features/select-notifications.tsx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/source/features/select-notifications.tsx b/source/features/select-notifications.tsx index cb87fad0..af6d4e1b 100644 --- a/source/features/select-notifications.tsx +++ b/source/features/select-notifications.tsx @@ -18,7 +18,6 @@ import { import features from '../feature-manager'; import observe from '../helpers/selector-observer'; -import attachElement from '../helpers/attach-element'; const filters = { 'Pull requests': ':is(.octicon-git-pull-request, .octicon-git-pull-request-closed, .octicon-git-pull-request-draft, .octicon-git-merge)', @@ -124,11 +123,11 @@ function createDropdownList(category: Category, filters: Filter[]): JSX.Element const createDropdown = onetime(() => ( <details - className="details-reset details-overlay position-relative rgh-select-notifications ml-2" + className="details-reset details-overlay position-relative rgh-select-notifications mx-2" onToggle={resetFilters} > <summary - className="btn btn-sm" + className="h6" // Match "Select all" style data-hotkey="S" aria-haspopup="menu" role="button" @@ -157,9 +156,7 @@ function closeDropdown(): void { } function addDropdown(markAllPrompt: Element): void { - attachElement(markAllPrompt.closest('label'), { - after: createDropdown, - }); + markAllPrompt.closest('label')!.after(createDropdown()); } function init(signal: AbortSignal): void { |