소스 검색

New layout fix - bar.

Anarios 2 년 전
부모
커밋
6be44d9eb9
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      Extensions/combined/src/bar.js

+ 3 - 3
Extensions/combined/src/bar.js

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