diff --git a/UPDATE_LOG.md b/UPDATE_LOG.md index 03f8e4f..ccc4cc9 100644 --- a/UPDATE_LOG.md +++ b/UPDATE_LOG.md @@ -5,6 +5,10 @@ Fix: - PNG and PDF buttons do not work (https://github.com/lencx/ChatGPT/issues/274) +- Change the window size and the Send button is obscured by the Export button (https://github.com/lencx/ChatGPT/issues/286) +- Change forward and backward shortcuts (https://github.com/lencx/ChatGPT/issues/254) + - MacOS: `Cmd [`, `Cmd ]` + - Windows and Linux: `Ctrl [`, `Ctrl ]` Feat: diff --git a/src-tauri/src/scripts/export.js b/src-tauri/src/scripts/export.js index 8147c22..08bf45b 100644 --- a/src-tauri/src/scripts/export.js +++ b/src-tauri/src/scripts/export.js @@ -2,11 +2,13 @@ async function init() { const buttonOuterHTMLFallback = ``; - if (window.innerWidth < 767) return; - const chatConf = await invoke('get_app_conf') || {}; + removeButtons(); if (window.buttonsInterval) { clearInterval(window.buttonsInterval); } + if (window.innerWidth < 767) return; + + const chatConf = await invoke('get_app_conf') || {}; window.buttonsInterval = setInterval(() => { const actionsArea = document.querySelector("form>div>div"); if (!actionsArea) { @@ -27,6 +29,8 @@ async function init() { }, 1000); } +window.addEventListener('resize', init); + const Format = { PNG: "png", PDF: "pdf",