Novik / ruTorrent

Yet another web front-end for rTorrent
Other
2.03k stars 414 forks source link

Prevent collapse menu from pushing content down #2772

Closed jevenski closed 3 weeks ago

jevenski commented 3 weeks ago

This patch tweaks the behavior of the top menu when it expands and collapse.

Before

Screen Recording 2024-10-30 235655

After

Screen Recording 2024-10-30 235449

Currently on mobile, when opening the top menu, the main content will be pushed downwards. See how the "Name" header row goes downwards and upwards with the top menu when it expands and collapses. This creates resizing issues on mobile devices sometimes. Fix the position of main content and make top menu go above it looks more consistent on the overall layout.

Also, I try to reduce the specificity of CSS rules step by step, to make them cleaner and easier to maintain. Here in this patch, there are a few lines modified, too.