Skip to content

Commit

Permalink
fix(wrapper): improve simpleLayout & wrapper hooks (#2713)
Browse files Browse the repository at this point in the history
  • Loading branch information
ohitstom authored Dec 10, 2023
1 parent 174e5c6 commit 1fc2bb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jsHelper/spicetifyWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,8 @@ window.Spicetify = {
ButtonSecondary: modules.find(m => m?.render && m?.displayName === "ButtonSecondary"),
ButtonTertiary: modules.find(m => m?.render && m?.displayName === "ButtonTertiary"),
Snackbar: {
wrapper: functionModules.find(m => m.toString().includes("encore-light-theme")),
simpleLayout: functionModules.find(m => m.toString().includes("leading")),
wrapper: functionModules.find(m => m.toString().includes("encore-light-theme") && m.toString().includes("elevated")),
simpleLayout: functionModules.find(m => ["leading", "center", "trailing"].every(keyword => m.toString().includes(keyword))),
ctaText: functionModules.find(m => m.toString().includes("ctaText")),
styledImage: functionModules.find(m => m.toString().includes("placeholderSrc"))
},
Expand Down

0 comments on commit 1fc2bb9

Please sign in to comment.