mirror of
https://github.com/FranP-code/ChatGPT.git
synced 2025-10-13 00:13:25 +00:00
fix: export buttons (#286)
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
8
src-tauri/src/scripts/export.js
vendored
8
src-tauri/src/scripts/export.js
vendored
@@ -2,11 +2,13 @@
|
||||
|
||||
async function init() {
|
||||
const buttonOuterHTMLFallback = `<button class="btn flex justify-center gap-2 btn-neutral" id="download-png-button">Try Again</button>`;
|
||||
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",
|
||||
|
||||
Reference in New Issue
Block a user