|
@@ -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 +
|
|
|
|
- getButtons().children[1].clientWidth +
|
|
|
|
|
|
+ getLikeButton().clientWidth +
|
|
|
|
+ getDislikeButton().clientWidth +
|
|
8;
|
|
8;
|
|
|
|
|
|
const widthPercent =
|
|
const widthPercent =
|