Skip to content

Commit

Permalink
Fix sizing changes again and remove manipulation
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptronicek committed Dec 4, 2023
1 parent 7c37d0b commit aad3e30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
12 changes: 2 additions & 10 deletions src/button/button-contributions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,17 +198,9 @@ export const buttonContributions: ButtonContributionParams[] = [
// "https://github.com/svenefftinge/browser-extension-test/tree/my-branch",
],
selector: `xpath://*[@id="repo-content-pjax-container"]/div/div/div[2]/div[1]/react-partial/div/div/div[1]/div/div/div[2]/div[2]/div/div[3]/div[1]/div[2]`,
containerElement: createElement("div", {
}),
containerElement: createElement("div", {}),
additionalClassNames: ["medium"],
application: "github",
manipulations: [
{
// make the code button secondary
element: "#repository-details-container > ul > li > get-repo > details > summary",
remove: "Button--primary",
add: "Button--secondary"
}
],
match: () => {
const regex = /^https?:\/\/([^/]+)\/([^/]+)\/([^/]+)(\/(tree\/.*)?)?$/;
return document.querySelector("div.file-navigation") === null && regex.test(window.location.href);
Expand Down
2 changes: 1 addition & 1 deletion src/button/button.css
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
--border-radius: var(--borderRadius-medium, 0.375rem);
--border-width: var(--borderWidth-thin, max(1px, 0.0625rem));

--primary-height: 2rem;
--primary-height: var(--control-small-size, 1.75rem);
--primary-bg-color: var(--button-primary-bgColor-rest, var(--color-btn-primary-bg));
--primary-hover-bg-color: var(--button-primary-bgColor-hover, var(--color-btn-primary-hover-bg));
--primary-border-color: var(--button-primary-borderColor-rest, var(--color-btn-primary-border));
Expand Down

0 comments on commit aad3e30

Please sign in to comment.