lencx / ChatGPT

🔮 ChatGPT Desktop Application (Mac, Windows and Linux)
https://nofwl.com
51.64k stars 5.79k forks source link

[Bug] Zoom in / out menu and hotkey options in Linux / KDE do not change font size #1252

Open miranda opened 2 months ago

miranda commented 2 months ago

Non-ChatGPT bug

Version

1.1.0

Bug description

The zoom options do not change font size. I can't figure out any way to change the font size and it is too small on a 4K monitor. I have tried both the AppImage and the AUR package.

OS

Arch Linux, KDE 6, X11

Environment

No response

wanghao-SunSky commented 2 months ago

MacBook Pro (15-inch, 2016) also encountered this issue.

kinimokoena commented 1 month ago

hello i have problem chat gpt is very law can you please assist me

kinimokoena commented 1 month ago

and always give wrong information

adriandelgg commented 1 month ago

I also can't zoom in and out anymore. It's extremely annoying.

adriandelgg commented 1 month ago

@miranda Did you figure it out?

miranda commented 1 month ago

@miranda Did you figure it out?

No... I don't think there is anything to figure out. Zoom just doesn't work. Seems like a bug. I'm stuck using the website until this is fixed because I'm too blind for the font size.

adriandelgg commented 1 month ago

@miranda Did you figure it out?

No... I don't think there is anything to figure out. Zoom just doesn't work. Seems like a bug. I'm stuck using the website until this is fixed because I'm too blind for the font size.

Damn, I'm on the same boat..

adriandelgg commented 1 month ago

@miranda Did you figure it out?

No... I don't think there is anything to figure out. Zoom just doesn't work. Seems like a bug. I'm stuck using the website until this is fixed because I'm too blind for the font size.

Hey, 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):
    
    // 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%');


5. Hit save and restart the app.
miranda commented 1 month ago

Hey, I actually created a small fix to set the default zoom to any value you want! Here are the instructions:

Awesome, thank you for this, I can finally use this app!

If that's all it takes to change the text size, maybe adding it in the control center would be an easier and better way to fix this bug?

adriandelgg commented 1 month ago

Hey, I actually created a small fix to set the default zoom to any value you want! Here are the instructions:

Awesome, thank you for this, I can finally use this app!

If that's all it takes to change the text size, maybe adding it in the control center would be an easier and better way to fix this bug?

Maybe, that would require more work though. I'm not a maintainer or contributor to this project, I just wanted to get the zoom working again lol