mirror of
https://github.com/Anarios/return-youtube-dislike.git
synced 2026-09-12 10:22:10 +02:00
Fix like to dislike bar appearing misaligned (#835)
* Fix CSS * Implement more accurate method for getting like + dislike btn widths
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user