Skip to content

Commit

Permalink
Update button possiton
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba65 committed Apr 17, 2024
1 parent f873889 commit 44cae99
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/content.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const TASK_TITLE_SELECTOR = 'textarea.BaseTextarea.simpleTextarea--dynamic.simpleTextarea.AutogrowTextarea-input';
const PARENT_TASK_TITLE_SELECTOR = 'div.Breadcrumb.TaskAncestryBreadcrumb.TaskAncestry-taskAncestryBreadcrumb > a';
const HEADING_SELECTOR = 'div.TaskPaneToolbarAnimation-statusButtonRow.TaskPaneToolbarAnimation-row.Stack.Stack--align-center.Stack--direction-row.Stack--display-block.Stack--justify-start';
const HEADING_SELECTOR = 'div.TaskPaneToolbar.TaskPane-header.Stack.Stack--align-center.Stack--direction-row.Stack--display-block.Stack--justify-space-between';
const ALL_COMMENTS_SELECTOR = 'div.FeedBlockStory.TaskStoryFeed-blockStory';
const COMMENT_TEXT_DIV_SELECTOR = 'div.TypographyPresentation.TypographyPresentation--m.RichText3-paragraph--withVSpacingNormal.RichText3-paragraph';
const COMMENT_BUTTON_DIV_SELECTOR = 'div.ThemeableIconButtonPresentation--isEnabled.ThemeableIconButtonPresentation.ThemeableIconButtonPresentation--medium.SubtleIconButton--standardTheme.SubtleIconButton.BlockStoryDropdown.FeedBlockStory-actionsDropdownButton';
Expand Down Expand Up @@ -119,7 +119,9 @@ const appendCopyButton = (elementToAppendButton) => {
button.onclick = (e) => copyTaskInfo(e.shiftKey);

if (!buttonExists) {
elementToAppendButton.appendChild(button);
var referenceElement = elementToAppendButton.children[3];

elementToAppendButton.insertBefore(button, referenceElement);
}
};

Expand Down

0 comments on commit 44cae99

Please sign in to comment.