While it is generally recommended to stand and move around periodically when using a standing desk, it is also okay to lean on the desk for short periods of time. Leaning can help to relieve fatigue and reduce pressure on your feet and lower back.
However, it's important to remember that the primary benefit of a standing desk is to promote movement and reduce the amount of time you spend sitting. Prolonged leaning on a standing desk can also lead to poor posture and strain on your neck and shoulders.
Therefore, it's recommended to alternate between standing, sitting, and leaning throughout the day to reduce the risk of fatigue and strain. Additionally, it's important to maintain good posture while standing or leaning by keeping your shoulders back, your chest open, and your head level.