Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent collapse menu from pushing content down #2772

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

jevenski
Copy link
Contributor

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.

  • On mobile, an open top menu will now go above the main content, instead of pushing the main content downward. This will prevent resizing issues.
  • Remove some unused CSS rules.

- On mobile, an open top menu will now go above the main content,
  instead of pushing the main content downward. This will prevent
  resizing issues.
- Remove some unused CSS rules.
@stickz stickz merged commit a5e9698 into Novik:master Oct 31, 2024
@jevenski jevenski deleted the top-menu branch October 31, 2024 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants