|
1 | 1 | import { sha256 } from '../../utils/crypto.js'; |
2 | 2 | import { timelineObject } from '../../utils/react_props.js'; |
3 | 3 | 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'; |
5 | 5 | import { joinedCommunities, joinedCommunityUuids, primaryBlog, userBlogs } from '../../utils/user.js'; |
6 | 6 | import { getPreferences } from '../../utils/preferences.js'; |
7 | 7 | import { onNewPosts } from '../../utils/mutations.js'; |
@@ -69,7 +69,7 @@ const blogHashes = new Map(); |
69 | 69 | const avatarUrls = new Map(); |
70 | 70 |
|
71 | 71 | const reblogButtonSelector = `${postSelector} footer a[href*="/reblog/"]`; |
72 | | -const buttonDivSelector = `${keyToCss('controls')} > *, ${keyToCss('engagementAction')}`; |
| 72 | +const buttonDivSelector = `${keyToCss('controls', 'engagementControls')} > *, ${keyToCss('engagementAction')}`; |
73 | 73 |
|
74 | 74 | export const styleElement = buildStyle(` |
75 | 75 | ${keyToCss('engagementAction', 'targetWrapperFlex')}:has(> #quick-reblog) { |
@@ -137,7 +137,7 @@ tagsInput.addEventListener('input', checkLength); |
137 | 137 | const showPopupOnHover = ({ currentTarget }) => { |
138 | 138 | clearTimeout(timeoutID); |
139 | 139 |
|
140 | | - appendWithoutOverflow(popupElement, currentTarget.closest(buttonDivSelector), popupPosition); |
| 140 | + appendWithoutOverflow(popupElement, getPopoverWrapper(currentTarget), popupPosition); |
141 | 141 | popupElement.parentNode.addEventListener('mouseleave', removePopupOnLeave); |
142 | 142 |
|
143 | 143 | const thisPost = currentTarget.closest(postSelector); |
|
0 commit comments