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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user