mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-02 10:52:20 +01: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:
1 parent
7d2fe5019c
commit
08ee253c05
1 file changed
+2
-2
@@ -19,8 +19,8 @@ function createRateBar(likes, dislikes) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const widthPx =
|
const widthPx =
|
||||||
getLikeButton().clientWidth +
|
parseFloat(window.getComputedStyle(getLikeButton()).width) +
|
||||||
getDislikeButton().clientWidth +
|
parseFloat(window.getComputedStyle(getDislikeButton()).width) +
|
||||||
(isRoundedDesign() ? 0 : 8);
|
(isRoundedDesign() ? 0 : 8);
|
||||||
|
|
||||||
const widthPercent =
|
const widthPercent =
|
||||||
|
|||||||
Reference in new issue
Block a user