Open jackpot51 opened 8 months ago
We'll need menus to be bound by the application window for COSMIC apps to work well on small displays such as mobile devices. This needs design work but here are a few techniques we can use:
I am not sure shortcuts will be a problem but we should remove them only when absolutely necessary. The rest of the designs are described below (dev link to Figma sections).
Should be completed with the Collapse the Menu design.
Conclusion from alpha 1 summit discussions:
Since these menus are drawn inside the application window, they cannot go beyond it. I've minimized the issues as much as possible (for example, with #257), but small window sizes still cut off menu content.
Ideally, we'd have a platform agnostic mechanism to make these their own windows. For wayland, these are called popups https://wayland-book.com/xdg-shell-in-depth/popups.html. There is an implementation of menus for Linux, macOS, and Windows here: https://github.com/tauri-apps/muda, but it uses GTK on Linux.