From 822fa718004b598228171a5eecf4c23bc178ddf5 Mon Sep 17 00:00:00 2001 From: exci <76759714+icxes@users.noreply.github.com> Date: Fri, 10 Apr 2026 21:33:28 +0300 Subject: [PATCH] add autogrid (#1407) Co-authored-by: ed --- copyparty/web/browser.js | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 85d03ab5..6efd303c 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -228,6 +228,7 @@ if (1) "cl_hpick": "tap on column headers to hide in the table below", "cl_hcancel": "column hiding aborted", "cl_rcm": "right-click menu", + "cl_gauto": "autogrid", "ct_grid": '田 the grid', "ct_ttips": '◔ ◡ ◔">ℹ️ tooltips', @@ -282,6 +283,8 @@ if (1) "tt_dynt": "autogrow as tree expands", "tt_wrap": "word wrap", "tt_hover": "reveal overflowing lines on hover$N( breaks scrolling unless mouse $N  cursor is in the left gutter )", + "tt_gauto": "display as grid or list depending on folder contents", + "tt_gathr": "use grid if this percentage of files are pics/vids", "ml_pmode": "at end of folder...", "ml_btns": "cmds", @@ -984,6 +987,13 @@ ebi('op_cfg').innerHTML = ( ' \n' + '\n' + '
\n' + + '

' + L.cl_gauto + '

\n' + + '
\n' + + ' ' + L.enable + '\n' + + ' ' + + '
\n' + + '
\n' + + '
\n' + '

' + L.cl_hfsz + '

\n' + '