Skip to content

Commit

Permalink
Fix like to dislike bar appearing misaligned (#835)
Browse files Browse the repository at this point in the history
* Fix CSS

* Implement more accurate method for getting like + dislike btn widths
  • Loading branch information
ErykDarnowski authored Jun 16, 2024
1 parent 7d2fe50 commit 08ee253
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Extensions/combined/src/bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ function createRateBar(likes, dislikes) {
}

const widthPx =
getLikeButton().clientWidth +
getDislikeButton().clientWidth +
parseFloat(window.getComputedStyle(getLikeButton()).width) +
parseFloat(window.getComputedStyle(getDislikeButton()).width) +
(isRoundedDesign() ? 0 : 8);

const widthPercent =
Expand Down

0 comments on commit 08ee253

Please sign in to comment.