From 4ae601071c80506e3f5d47c3dcb9090bdc545ae1 Mon Sep 17 00:00:00 2001 From: icxes Date: Mon, 30 Mar 2026 20:11:10 +0300 Subject: [PATCH] add autogrid config options --- copyparty/web/browser.js | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 782851b0..34398217 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -155,6 +155,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_gridauto": "toggle auto-grid mode", "wt_prev": "previous track$NHotkey: J", "wt_play": "play / pause$NHotkey: P", "wt_next": "next track$NHotkey: L", @@ -228,8 +229,10 @@ 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_gridauto": "autogrid", "ct_grid": '田 the grid', + "ct_gridauto": 'autogrid', "ct_ttips": '◔ ◡ ◔">ℹ️ tooltips', "ct_thumb": 'in grid-view, toggle icons or thumbnails$NHotkey: T">🖼️ thumbs', "ct_csel": 'use CTRL and SHIFT for file selection in grid-view">sel', @@ -282,6 +285,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_gathresh": "percentage of files required to trigger autogrid", + "tt_gaext": "comma-separated file extensions to consider for autogrid", "ml_pmode": "at end of folder...", "ml_btns": "cmds", @@ -935,6 +940,14 @@ ebi('op_cfg').innerHTML = ( ' ' + L.ct_gridauto + '\n' + + ' ' + + ' ' + + ' \n' + + '\n' + '
\n' + '

' + L.cl_hfsz + '

\n' + '