mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-11-29 07:34:13 +01:00
The Material 3 Expressive popup takes the anchor's width plus 176dp, capped at 280dp, and cuts longer labels with an ellipsis. Beside an icon button that is about 224dp, so the Indonesian "Sembunyikan Terjemahan" in the lyrics menu read "Sembunyikan Terjema...". showAppMenuPopup now measures its labels with the menu's own label style, icon, paddings and shadow inset, and asks for that width when the usual one would cut a label, raising the 280dp cap only when needed and never past the screen edges. Menus whose labels fit keep their width.