Maybe it would be better to set a minimum width for the window, so that at least the titlebar (including the application name and minimize/maximize/close buttons) and a part of the application window itself stays visible.
Here are ways discussed to set a minimum height and width for a BrowserWindow.
On Arch/GNOME/Wayland & Schildichat v1.11.30 it's possible to resize the window, until there's only a thin small line left.
Screencast from 2023-08-18 19-23-09.webm
Maybe it would be better to set a minimum width for the window, so that at least the titlebar (including the application name and minimize/maximize/close buttons) and a part of the application window itself stays visible.
Here are ways discussed to set a minimum height and width for a BrowserWindow.