feat: Remove 'Choose a folder' button from upload UI

Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
2026-01-20 22:28:24 -07:00
parent 2c4969ae21
commit 233c96dcf8
3 changed files with 18 additions and 49 deletions

View File

@@ -319,7 +319,6 @@ async function uploadChunked(next){
// --- DOM refs ---
const dz = document.getElementById('dropzone');
const fi = document.getElementById('fileInput');
const foi = document.getElementById('folderInput');
const btnMobilePick = document.getElementById('btnMobilePick');
const btnClearFinished = document.getElementById('btnClearFinished');
const btnClearAll = document.getElementById('btnClearAll');
@@ -442,9 +441,6 @@ fi.addEventListener('click', (e) => {
// prevent bubbling to parents (extra safety)
e.stopPropagation();
});
if (foi) {
foi.addEventListener('click', (e) => { e.stopPropagation(); });
}
const onFilesSelected = (inputEl) => {
if (!inputEl) return;
@@ -461,7 +457,6 @@ const onFilesSelected = (inputEl) => {
};
fi.onchange = () => onFilesSelected(fi);
if (foi) foi.onchange = () => onFilesSelected(foi);
// If you want the whole dropzone clickable on desktop only, enable this:
if (!isTouch) {