mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-03-11 17:48:44 -05:00
- 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
8 lines
281 B
JavaScript
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),
|
|
})
|