Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Zoom In and Out no longer works. #1254

Open
1 task done
adriandelgg opened this issue May 7, 2024 · 5 comments
Open
1 task done

[Bug] Zoom In and Out no longer works. #1254

adriandelgg opened this issue May 7, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@adriandelgg
Copy link

Non-ChatGPT bug

  • This issue does not occur on chat.openai.com and only occurs on this app.

Version

v1.1.0

Bug description

ChatGPT app works fine, but it no longer allows me to Zoom in and out. This is extremely annoying since the text is too small in it's default state.

I've tried removing every single file related to this application and reinstalling both the .deb and AppImage versions, and it still doesn't work. I even tried downloading v1.0.0 and it also doesn't work.

PLEASE FIX

OS

Debian 12

Environment

No response

@adriandelgg adriandelgg added the bug Something isn't working label May 7, 2024
@zeroarst
Copy link

Same here.

@einsof-creator
Copy link

I have the same bug, i was wondering if it was only me or the app. Nothing works to zoom in.

@adriandelgg
Copy link
Author

adriandelgg commented May 12, 2024

Hey @einsof-creator @zeroarst, I actually created a small fix to set the default zoom to any value you want!

Here are the instructions:

  1. Go to "Control Center"
  2. Click on "Scripts"
  3. Edit main.js
  4. Insert this code at the bottom of the main.js file (set the zoom amount to whatever value you want. Note that it has to be enclosed in single '' or double "" quotes). Make sure that it goes inside the last line, so you're going to be replacing the '150%' with a percentage value you want. If you want 150%, leave it as is.:
// zoomAmount must be a string percentage, e.g '150%'
function setDefaultZoom(zoomAmount) {
  const html = document.getElementsByTagName('html')[0];
  html.style.zoom = zoomAmount;
  window.localStorage.setItem('htmlZoom', zoomAmount);
}

setDefaultZoom('150%'); // <- Add your zoom amount in this line!
  1. Hit save and restart the app.

@einsof-creator
Copy link

Awesome, thank you. That worked.

@Culpable
Copy link

Potentially related to this bug - my slash commands (/) stopped working altogether.

Previously they would only work on a new chat after I refreshed the app. Now they don't work at all. Anyone have any idea how to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants