black-backdoor / MeOS

Online Operating System
https://meos.lima.zone
GNU General Public License v3.0
1 stars 1 forks source link

`applet-power` Fix Menu Positioning to Stay Within Viewport #109

Closed black-backdoor closed 1 month ago

black-backdoor commented 2 months ago

Description

This PR updates the PowerApplet component to ensure that the menu always remains within the viewport. The adjustMenuPosition method has been enhanced to dynamically adjust the menu's position based on the viewport size, handling cases where the menu might overflow the viewport boundaries.

Type of change