Explorar o código

fix: margin of auto like toggle btn

Sven hai 8 meses
pai
achega
c158cbcf3c
Modificáronse 2 ficheiros con 6 adicións e 3 borrados
  1. 5 2
      src/features/input.css
  2. 1 1
      src/features/input.ts

+ 5 - 2
src/features/input.css

@@ -90,8 +90,11 @@
 }
 
 .bytm-generic-btn.long.bytm-auto-like-toggle-btn.left-margin {
-  margin: 0;
-  margin-left: 8px;
+  margin: 0 0 0 8px;
+}
+
+.bytm-generic-btn.long.bytm-auto-like-toggle-btn.right-margin {
+  margin: 0 8px 0 0;
 }
 
 .bytm-generic-btn.long.bytm-auto-like-toggle-btn:hover {

+ 1 - 1
src/features/input.ts

@@ -312,7 +312,7 @@ export async function initAutoLike() {
               if(buttonsCont) {
                 addSelectorListener<0, "yt">("ytAppHeader", "#channel-header-container #other-buttons, yt-flexible-actions-view-model .yt-flexible-actions-view-model-wiz__action", {
                   listener: (otherBtns) =>
-                    addAutoLikeToggleBtn(otherBtns, chanId, chanName, ["left-margin"]),
+                    addAutoLikeToggleBtn(otherBtns, chanId, chanName, ["left-margin", "right-margin"]),
                 });
               }
               else if(titleCont)