Files
vikunja/desktop/preload-quick-entry.js
kolaente 86141e13be fix(desktop): reduce quick entry window height, add resize IPC, fix focus
- Reduce initial window height from 500px to 120px so it only shows
  the input bar without excess space
- Add quick-entry:resize IPC channel so the frontend can expand the
  window when the help modal opens and collapse it when closed
- Wait for did-finish-load before showing/focusing the window so the
  input gets properly focused on each invocation
2026-03-03 23:38:30 +01:00

8 lines
281 B
JavaScript

// desktop/preload-quick-entry.js
const { contextBridge, ipcRenderer } = require('electron')
contextBridge.exposeInMainWorld('quickEntry', {
close: () => ipcRenderer.send('quick-entry:close'),
resize: (width, height) => ipcRenderer.send('quick-entry:resize', width, height),
})