Skip to content

Commit

Permalink
tweak window layout
Browse files Browse the repository at this point in the history
  • Loading branch information
torbjornbp committed Nov 26, 2024
1 parent 285067e commit 0412d1f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions layouts/shortcodes/webamp.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,23 @@
__initialWindowLayout: {
main: { position: { x: 0, y: 0 } },
equalizer: {
position: { x: 0, y: 232 }
position: { x: 0, y: 116 }
},
playlist: {
position: { x: 0, y: 116 },
size: [0, 4]
position: { x: 0, y: 130 },
size: [0, 1]
},
milkdrop: {
position: { x: 275, y: 0 },
size: [0, 8]
position: { x: 0, y: 274 },
size: [0,2]
}
}
});

document.getElementById("app").style.display = "block";
webampInstance.renderWhenReady(document.getElementById("app")).then(() => {
webampInstance.store.dispatch({ type: 'CLOSE_WINDOW', windowId: 'equalizer' });
// Minimize (shade) the equalizer
webampInstance.store.dispatch({ type: 'TOGGLE_WINDOW_SHADE_MODE', windowId: 'equalizer' });

webampInstance.onClose(() => {
document.getElementById("app").style.display = "none";
Expand Down

0 comments on commit 0412d1f

Please sign in to comment.