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 { 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 =