diff --git a/copyparty/web/browser.css b/copyparty/web/browser.css index 4bf0feec..3b1ffa5a 100644 --- a/copyparty/web/browser.css +++ b/copyparty/web/browser.css @@ -1493,7 +1493,7 @@ html.a #up_quick .btn.on { } #pvolbg { height: 1.3em; - min-width: 1em; + min-width: 1.5em; padding: .3em; cursor: pointer; align-items: center; diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index bcc2ae28..078d44eb 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -6919,7 +6919,7 @@ var search_ui = (function () { folderSearch.onfocus = function(){ ebi('srch_pathc').checked = true; var path = decodeURI(get_evpath()); - ebi('srch_pathv').value = path.slice(1); + ebi('srch_pathv').value = path.slice(1) || '/'; } if(IE) folderSearch.onclick = function() { @@ -7013,6 +7013,8 @@ var search_ui = (function () { if(k == 'path' && vs.endsWith('/') && !vs.match('"')){ vs = vs.slice(0, -1); vs = '"' + vs + (recursive ? '*' : '') + '"'; + tvs.push(vs); + vs = ''; } var match = vs.match(/\B("(?:[^"]|\\")*[^\\]")\B/g); @@ -7081,14 +7083,14 @@ var search_ui = (function () { if (tv.slice(0, 1) == '^') { tv = tv.slice(1); } - else if (!(tv.match(' ') || tv.startsWith('"'))){ + else if (!tv.match(' ') && !tv.startsWith('"')){ tv = '*' + tv; } if (tv.slice(-1) == '$') { tv = tv.slice(0, -1); } - else if(!(tv.match(' ') || tv.endsWith('"'))){ + else if(!tv.match(' ') && !tv.endsWith('"')){ tv += '*'; }