atlas-engineer / nyxt

Nyxt - the hacker's browser.
https://nyxt-browser.com/
9.77k stars 409 forks source link

Website partially obscured when zoom factor is higher than 1 #3456

Open kflak opened 1 month ago

kflak commented 1 month ago

Describe the bug

When I run fx facebook or gmail and scaling is higher than 1 (my default is 1.5), the right side of the page is partially obscured. Seems like the site is not getting the message that the viewport is now smaller.

Precise recipe to reproduce the issue Open f.x. facebook.com or gmail.com, set zoom to 1.5.

For website-specific issues: Can you reproduce this issue with Epiphany / GNOME Web (https://wiki.gnome.org/Apps/Web)?

Epiphany rescales the elements of the website correctly as I zoom in.

Information

ASDF version: 3.3.1 ASDF registries: (NYXT-SOURCE-REGISTRY ENVIRONMENT-SOURCE-REGISTRY) Critical dependencies: (/build/nyxt/src/_build/cl-cffi-gtk/gtk/cl-cffi-gtk.asd /build/nyxt/src/_build/cl-gobject-introspection/cl-gobject-introspection.asd /build/nyxt/src/_build/cl-webkit/webkit2/cl-webkit2.asd)


**Output when started from a shell**

Nyxt version 3.11.8

[07:22:03] Source location: #P"/usr/share/nyxt/" [07:22:03] Loading Lisp file #P"/home/kf/.config/nyxt/auto-config.3.lisp". [07:22:03] Loading Lisp file #P"/home/kf/.config/nyxt/config.lisp". [07:22:03] Listening to socket: #P"/run/user/1000/nyxt/nyxt.socket" (nyxt:21450): libenchant-WARNING **: 07:22:03.601: broker.vala:159: Error loading plugin: libnuspell.so.5: cannot open shared object file: No such file or directory [07:22:04] Loading #P"/home/kf/.local/share/nyxt/history/default.lisp". [07:22:04] Restoring 18 buffers from history. [07:22:04] Loading #P"/home/kf/.local/share/nyxt/auto-rules.lisp". [07:22:04] Loading #P"/home/kf/.local/share/nyxt/hostlist-stevenblack.txt". [07:22:08] Loading "https://github.com/atlas-engineer/nyxt/issues/3456". [07:22:09] Finished loading "https://github.com/atlas-engineer/nyxt/issues/3456". ```
aadcg commented 1 month ago

@kflak Thanks for the report. Can you reproduce if you start nyxt via nyxt --failsafe and zoom those pages interactively?

kflak commented 1 month ago

Yes, getting the same behavior. A bit more detail: the elements on the facebook page do resize when I zoom in, but when I click on the notifications button in the upper right corner, most of the popup is outside the screen. On gmail there is no dynamic resizing at all.

EDIT: Add screenshot of what FB looks like. 2024-08-08_16:56:29

aadcg commented 1 month ago

@kflak I'm surprised that the issue can't be reproduced with Epiphany. It still seems to be a bug in the renderer (WebKitGTK).

kflak commented 1 month ago

Yeah, I see no trace of this behavior on epihany... All scaling and resizing works perfectly there, as far as I can tell.