Skip to content

Commit

Permalink
bitbucket-copy-commit-reference: update CSS for Cloud
Browse files Browse the repository at this point in the history
After an update of Bitbucket Cloud, the mangled CSS class names, which
are used by bitbucket-copy-commit-reference.user.js have changed.
Update the CSS classes used for the `button` by method wrapButton in
class BitbucketCloud.  The CSS classes for the `icon` in the same method
haven't been affected, as far as I can tell.
  • Loading branch information
rybak committed Dec 17, 2023
1 parent a96ac85 commit 9f66b60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bitbucket-copy-commit-reference.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name Bitbucket: copy commit reference
// @namespace https://github.com/rybak/atlassian-tweaks
// @version 5
// @version 6
// @description Adds a "Copy commit reference" link to every commit page on Bitbucket Cloud and Bitbucket Server.
// @license AGPL-3.0-only
// @author Andrei Rybak
Expand Down Expand Up @@ -139,7 +139,7 @@
icon.classList.add('css-bwxjrz', 'css-snhnyn');
const buttonText = this.getButtonText();
button.replaceChildren(icon, document.createTextNode(` ${buttonText}`));
button.classList.add('css-1leee2m');
button.classList.add('css-1luyhz2');
} catch (e) {
warn('BitbucketCloud: cannot find icon of "copy commit hash"');
}
Expand Down

0 comments on commit 9f66b60

Please sign in to comment.