Skip to content

Commit

Permalink
- Add the missing Settings button under Made for You section of Libra…
Browse files Browse the repository at this point in the history
…ry view;

- Banner centering code optimizations (no visual changes);
- Minor Episode page design tweak.
  • Loading branch information
Toff I.D committed Jun 11, 2019
1 parent 6cf82e1 commit 2ff7fe3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion SpotifyWPW/WebPlayer/Style/Components/_Page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
// Center episode title 2
h2 {
text-align: center;
font-weight: var(--glue-font-weight-normal);
font-size: 15px;
}

// Fix for missing font glyphs
Expand Down
2 changes: 1 addition & 1 deletion SpotifyWPW/WebPlayer/Style/Player.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion SpotifyWPW/WebPlayer/Style/Player.min.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions SpotifyWPW/WebPlayer/Style/Player.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,18 @@ html, body {
}

.AdsContainer {
width: auto;
width: 100%;
height: 52px;
bottom: 100px;
padding: 0 1px 0 0; // Fills 1px gap between the banner and the right edge on mobile
padding: 0;
position: -ms-device-fixed; // Prevent rubber scrolling

&__inner {
margin: 0 auto;

iframe {
transform: scale(0.565); // More precise banner width
transform-origin: top left;
transform-origin: top center;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion SpotifyWPW/WebPlayer/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const DARK_MODE = "amoledDarkMode";
}

// Show settings button on the library view
if (document.location.pathname.indexOf("/collection/") >= 0) {
if (document.location.pathname.indexOf("/collection/") >= 0 || document.location.pathname.indexOf("/made-for-you") >= 0) {
document.body.classList.add(SHOW_SETTINGS_BUTTON);
} else {
document.body.classList.remove(SHOW_SETTINGS_BUTTON);
Expand Down

0 comments on commit 2ff7fe3

Please sign in to comment.