diff --git a/desktop/main.js b/desktop/main.js index 4565b43..cee42d5 100644 --- a/desktop/main.js +++ b/desktop/main.js @@ -437,6 +437,19 @@ function configureSession() { if (sys && sys !== 'en-US' && (!avail.length || avail.includes(sys))) langs.push(sys); ses.setSpellCheckerLanguages(langs); } catch (_) {} + // Downloads go STRAIGHT to the OS Downloads folder — no "where do you want to save?" dialog. If a file of + // the same name already exists, suffix " (n)" so nothing is overwritten. (item.setSavePath suppresses the + // save dialog entirely.) + ses.on('will-download', (_e, item) => { + try { + const dir = app.getPath('downloads'); + const name = item.getFilename() || 'download'; + const ext = path.extname(name), base = path.basename(name, ext); + let target = path.join(dir, name), n = 1; + while (fs.existsSync(target)) target = path.join(dir, `${base} (${n++})${ext}`); + item.setSavePath(target); + } catch (_) {} + }); } // Single-instance: a tray app must not spawn a second copy. If another launch happens, focus the diff --git a/server/public/home.html b/server/public/home.html index 4bcfad5..89d317e 100644 --- a/server/public/home.html +++ b/server/public/home.html @@ -1100,6 +1100,7 @@ Making every focusable text field exactly 16px is the only reliable prevention — and it's belt-and- suspenders for the native app too. autoGrow's empty-guard keeps the composer at one line despite this. */ .composer-row input, .composer-row textarea, input[type="text"], input[type="search"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"], input[type="number"], input:not([type]), textarea, select{font-size:16px;} + .lightbox .lb-zoom{display:none;} /* mobile: pinch-to-zoom the image directly — the on-screen +/- buttons are redundant clutter */ /* Native-style push/pop: the conversation slides in from the right when opened and slides back out when you go back, so navigation has a clear direction (like Teams/WhatsApp). */ /* Native-style push/pop (like iOS/Teams): the conversation (.content) slides in from the right while @@ -1151,7 +1152,7 @@ -