mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-02 02:41:22 +01:00
New layout fix - bar.
This commit is contained in:
1 parent
2d9809ad31
commit
6be44d9eb9
1 file changed
+3
-3
@@ -1,4 +1,4 @@
|
|||||||
import { getButtons } from "./buttons";
|
import { getButtons, getDislikeButton, getLikeButton } from './buttons';
|
||||||
import {
|
import {
|
||||||
extConfig,
|
extConfig,
|
||||||
isMobile,
|
isMobile,
|
||||||
@@ -13,8 +13,8 @@ function createRateBar(likes, dislikes) {
|
|||||||
let rateBar = document.getElementById("ryd-bar-container");
|
let rateBar = document.getElementById("ryd-bar-container");
|
||||||
|
|
||||||
const widthPx =
|
const widthPx =
|
||||||
getButtons().children[0].clientWidth +
|
getLikeButton().clientWidth +
|
||||||
getButtons().children[1].clientWidth +
|
getDislikeButton().clientWidth +
|
||||||
8;
|
8;
|
||||||
|
|
||||||
const widthPercent =
|
const widthPercent =
|
||||||
|
|||||||
Reference in new issue
Block a user