New layout fix - bar.

This commit is contained in:
Anarios committed 2022-08-05 23:03:36 +02:00
1 parent 2d9809ad31
commit 6be44d9eb9
1 file changed
+3 -3
+3 -3
View File
@@ -1,4 +1,4 @@
import { getButtons } from "./buttons";
import { getButtons, getDislikeButton, getLikeButton } from './buttons';
import {
extConfig,
isMobile,
@@ -13,8 +13,8 @@ function createRateBar(likes, dislikes) {
let rateBar = document.getElementById("ryd-bar-container");
const widthPx =
getButtons().children[0].clientWidth +
getButtons().children[1].clientWidth +
getLikeButton().clientWidth +
getDislikeButton().clientWidth +
8;
const widthPercent =