Skip to content

Commit

Permalink
class update
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienMaille committed May 18, 2022
1 parent 3e2aa90 commit 8da36b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/js/Folders.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { waitForElement, htmlToNode } from "./Util";
import { icons } from "./Icons";

waitForElement([`.main-rootlist-rootlistPlaylistsScrollNode ul[tabindex="0"]`, `.main-rootlist-rootlistPlaylistsScrollNode ul[tabindex="0"] li`], ([root, firstItem]) => {
waitForElement([`.main-navBar-navBar ul[tabindex="0"]`, `.main-navBar-navBar ul[tabindex="0"] li`], ([root, firstItem]) => {
const listElem = firstItem.parentElement;
root.classList.add("dribs-playlist-list");

Expand Down
2 changes: 1 addition & 1 deletion src/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ Dribbblish.on("ready", () => {
// }
// });

waitForElement([".main-rootlist-rootlist", ".main-rootlist-wrapper > :nth-child(2) > :first-child", "#spicetify-show-list"], ([rootlist]) => {
waitForElement([".navBar-navBar", ".main-rootlist-wrapper > :nth-child(2) > :first-child", "#spicetify-show-list"], ([rootlist]) => {
function checkSidebarPlaylistScroll() {
const topDist = rootlist.getBoundingClientRect().top - document.querySelector("#spicetify-show-list:not(:empty), .main-rootlist-wrapper > :nth-child(2) > :first-child").getBoundingClientRect().top;
const bottomDist = document.querySelector(".main-rootlist-wrapper > :nth-child(2) > :last-child").getBoundingClientRect().bottom - rootlist.getBoundingClientRect().bottom;
Expand Down

0 comments on commit 8da36b8

Please sign in to comment.