Skip to content

Commit b651295

Browse files
committed
wip
1 parent 3d018bc commit b651295

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/features/quick_reblog/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { sha256 } from '../../utils/crypto.js';
22
import { timelineObject } from '../../utils/react_props.js';
33
import { apiFetch } from '../../utils/tumblr_helpers.js';
4-
import { postSelector, filterPostElements, postType, appendWithoutOverflow, buildStyle } from '../../utils/interface.js';
4+
import { postSelector, filterPostElements, postType, appendWithoutOverflow, buildStyle, getPopoverWrapper } from '../../utils/interface.js';
55
import { joinedCommunities, joinedCommunityUuids, primaryBlog, userBlogs } from '../../utils/user.js';
66
import { getPreferences } from '../../utils/preferences.js';
77
import { onNewPosts } from '../../utils/mutations.js';
@@ -69,7 +69,7 @@ const blogHashes = new Map();
6969
const avatarUrls = new Map();
7070

7171
const reblogButtonSelector = `${postSelector} footer a[href*="/reblog/"]`;
72-
const buttonDivSelector = `${keyToCss('controls')} > *, ${keyToCss('engagementAction')}`;
72+
const buttonDivSelector = `${keyToCss('controls', 'engagementControls')} > *, ${keyToCss('engagementAction')}`;
7373

7474
export const styleElement = buildStyle(`
7575
${keyToCss('engagementAction', 'targetWrapperFlex')}:has(> #quick-reblog) {
@@ -137,7 +137,7 @@ tagsInput.addEventListener('input', checkLength);
137137
const showPopupOnHover = ({ currentTarget }) => {
138138
clearTimeout(timeoutID);
139139

140-
appendWithoutOverflow(popupElement, currentTarget.closest(buttonDivSelector), popupPosition);
140+
appendWithoutOverflow(popupElement, getPopoverWrapper(currentTarget), popupPosition);
141141
popupElement.parentNode.addEventListener('mouseleave', removePopupOnLeave);
142142

143143
const thisPost = currentTarget.closest(postSelector);

0 commit comments

Comments
 (0)