diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index c638ba6a..63446a33 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -168,6 +168,7 @@ if (1) "wt_m3ua": "add to m3u playlist (click 📻copy later)", "wt_m3uc": "copy m3u playlist to clipboard", "wt_grid": "toggle grid / list view$NHotkey: G", + "wt_gallery": "toggle gallery view with larger image previews", "wt_prev": "previous track$NHotkey: J", "wt_play": "play / pause$NHotkey: P", "wt_next": "next track$NHotkey: L", @@ -6046,9 +6047,9 @@ var thegrid = (function () { gfiles.style.display = 'none'; gfiles.innerHTML = ( '
' + - '' + - '' + - '' + + '' + + '' + + '' + '' var svg_grid = svg_box + '' var svg_gallery = svg_box + '' - var svg_list = svg_box + '' + ebi('listicon_template').innerHTML = svg_list; ebi('gridicon_template').innerHTML = svg_grid; ebi('galleryicon_template').innerHTML = svg_gallery; - ebi('listicon_template').innerHTML = svg_list; - var ico1 = ebi('gridicon_template').cloneNode(true); - //var ico2 = ebi('galleryicon_template').cloneNode(true); - var ico3 = ebi('listicon_template').cloneNode(true); - clmod(ico1, 'on', false); - //clmod(ico2, 'on', false); - clmod(ico3, 'on', true); + var ico1 = ebi('listicon_template').cloneNode(true); + var ico2 = ebi('gridicon_template').cloneNode(true); + clmod(ico1, 'on', true); + clmod(ico2, 'on', false); // file list header ebi('wtc').innerHTML = ( ico1.outerHTML + - //ico2.outerHTML + - ico3.outerHTML + + ico2.outerHTML + '
' + '' + L.cl_hiddenc + '' + '
' +