Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 8e0217a

Browse files
committed
Fix position marker not found error
1 parent e93b620 commit 8e0217a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.DS_Store

6 KB
Binary file not shown.

dashboard.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ function updateClasses() {
7272

7373
function init () {
7474
const details = document.createElement('details')
75-
details.classList.add('position-relative', 'js-dropdown-details', 'details-overlay', 'float-right', 'mb-n1')
75+
details.classList.add('position-relative', 'js-dropdown-details', 'details-overlay', 'mb-n1', 'mt-3')
7676
details.style.userSelect = 'none'
7777
const summary = document.createElement('summary')
7878
summary.classList.add('btn', 'btn-sm')
7979
summary.textContent = 'Filter'
8080
const container = document.createElement('div')
81-
container.classList.add('dropdown-menu', 'dropdown-menu-sw', 'f5')
81+
container.classList.add('dropdown-menu', 'dropdown-menu-se', 'f5')
8282
container.style.width = '260px'
8383

8484
for (const key of menuItems[context]) {
@@ -107,9 +107,9 @@ function init () {
107107
details.appendChild(summary)
108108
details.appendChild(container)
109109

110-
const positionMarker = document.querySelector('.js-all-activity-header')
110+
const positionMarker = document.querySelector('#dashboard')
111111
if (positionMarker) {
112-
positionMarker.before(details)
112+
positionMarker.prepend(details)
113113
applyPreference()
114114
} else {
115115
console.log('Dashboard extension: position marker not found.')

0 commit comments

Comments
 (0)