diff --git a/src/button/button-contributions.ts b/src/button/button-contributions.ts index b4c62d5..f914b51 100644 --- a/src/button/button-contributions.ts +++ b/src/button/button-contributions.ts @@ -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); diff --git a/src/button/button.css b/src/button/button.css index 03aadcd..352e2ce 100644 --- a/src/button/button.css +++ b/src/button/button.css @@ -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));