diff --git a/copyparty/web/browser.css b/copyparty/web/browser.css index 71fa8c17..44861cd7 100644 --- a/copyparty/web/browser.css +++ b/copyparty/web/browser.css @@ -1160,8 +1160,8 @@ html.y #widget.open { border: 1px solid var(--bg-u5); border-width: 0 .1em 0 0; } -#wfm.act+#wzip, -#wfm.act+#wzip+#wnp { +#wfm.act+#wzip1+#wzip, +#wfm.act+#wzip1+#wzip+#wnp { margin-left: .2em; padding-left: .2em; border-left-width: .1em; @@ -1179,12 +1179,14 @@ html.y #widget.open { #wtoggle.np #wnp { display: inline-block; } +#wtoggle.sel #wzip1, #wtoggle.sel.np #wnp { display: none; } #wfm a, #wnp a, #wm3u a, +#zip1, #wzip a { font-size: .5em; padding: 0 .3em; @@ -1192,6 +1194,9 @@ html.y #widget.open { position: relative; display: inline-block; } +#zip1 { + font-size: .38em; +} #wm3u a { margin: -.2em .1em; font-size: .45em; @@ -1205,10 +1210,14 @@ html.y #widget.open { } #wfm span, #wm3u span, +#zip1 span, #wnp span { font-size: .6em; display: block; } +#zip1 span { + font-size: .9em; +} #wnp span { font-size: .7em; } diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 0629181c..6cb85b91 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -140,6 +140,7 @@ var Ls = { "wt_pst": "paste a previously cut / copied selection$NHotkey: ctrl-V", "wt_selall": "select all files$NHotkey: ctrl-A (when file focused)", "wt_selinv": "invert selection", + "wt_zip1": "download this folder as archive", "wt_selzip": "download selection as archive", "wt_seldl": "download selection as separate files$NHotkey: Y", "wt_npirc": "copy irc-formatted track info", @@ -754,6 +755,7 @@ var Ls = { "wt_pst": "lim inn filer (som tidligere ble klippet ut / kopiert et annet sted)$NSnarvei: ctrl-V", "wt_selall": "velg alle filer$NSnarvei: ctrl-A (mens fokus er på en fil)", "wt_selinv": "inverter utvalg", + "wt_zip1": "last ned denne mappen som et arkiv", "wt_selzip": "last ned de valgte filene som et arkiv", "wt_seldl": "last ned de valgte filene$NSnarvei: Y", "wt_npirc": "kopiér sang-info (irc-formatert)", @@ -1368,6 +1370,7 @@ var Ls = { "wt_pst": "粘贴之前剪切/复制的选择$N快捷键: ctrl-V", "wt_selall": "选择所有文件$N快捷键: ctrl-A(当文件被聚焦时)", "wt_selinv": "反转选择", + "wt_zip1": "将此文件夹下载为归档文件", //m "wt_selzip": "将选择下载为归档文件", "wt_seldl": "将选择下载为单独的文件$N快捷键: Y", "wt_npirc": "复制 IRC 格式的曲目信息", @@ -1908,6 +1911,8 @@ ebi('widget').innerHTML = ( ' href="#" id="fcut" tt="' + L.wt_cut + '">✂cutcopy📋paste' + + '📦zip' + 'sel.
allsel.
inv.