diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js
index bbda5591..e83370a5 100644
--- a/copyparty/web/browser.js
+++ b/copyparty/web/browser.js
@@ -1030,8 +1030,10 @@ ebi('widget').innerHTML = (
' ' +
' 0:00' +
' ' +
- ' 🔁' +
- ' 🔀' +
+ '
🎧 ' + L.cl_opts + '
\n' +
'
\n' +
@@ -1908,7 +1911,9 @@ var mpl = (function () {
});
bcfg_bind(r, 'shuf', 'au_shuf', false, function () {
mp.read_order(); // don't bind
+ ebi('au_shuf2').classList = ebi('au_shuf').classList;
});
+ ebi('au_shuf2').onclick = ebi('au_shuf').onclick;
bcfg_bind(r, 'aplay', 'au_aplay', true);
bcfg_bind(r, 'afade', 'au_afade', true);
bcfg_bind(r, 'preload', 'au_preload', true);
@@ -7824,6 +7829,8 @@ function onwidgetresize(){
var pb_container = ebi('mu_pbb');
pb_container.appendChild(ebi('progbar'));
pb_container.appendChild(ebi('altprogbar'));
+ ebi('mu_toggles').appendChild(ebi('cyclebtn_loopmode'));
+ ebi('mu_toggles').appendChild(ebi('au_shuf'));
ebi('altprogbar').maxWidth = '';
ebi('mu_vol').appendChild(ebi('pvolbg'));
pbar.onresize();
@@ -7845,6 +7852,7 @@ function onwidgetresize(){
//wide
ebi('trackname').after(ebi('progbar'));
ebi('trackname').after(ebi('altprogbar'));
+
bar.style.paddingTop = '0';
}
catch (e) {
@@ -7867,6 +7875,15 @@ function onwidgetresize(){
if(ebi('mu_vol').children.length > 0){
bar.appendChild(ebi('pvolbg'));
}
+ var inmu = ebi('mu_toggles').children.length
+ if(!thin && inmu){
+ ebi('au_tgls').appendChild(ebi('cyclebtn_loopmode'));
+ ebi('au_tgls').appendChild(ebi('au_shuf'));
+ }
+ else if(thin && !inmu){
+ ebi('mu_toggles').appendChild(ebi('cyclebtn_loopmode'));
+ ebi('mu_toggles').appendChild(ebi('au_shuf'));
+ }
pbar.onresize();