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

Fix blank space in admin content #3778

Merged
merged 3 commits into from
Dec 19, 2019
Merged

Fix blank space in admin content #3778

merged 3 commits into from
Dec 19, 2019

Conversation

javierm
Copy link
Member

@javierm javierm commented Oct 18, 2019

References

Objectives

  • Fix a bug which made blank space appear at the bottom of the page in the administration some cases
  • Fix a bug using the browser's back button which resulted in only the top of the page being visible
  • Fix a bug making the bottom of the navigation bar becoming inaccessible
  • Use CSS code instead of JavaScript to make two elements have the same height
  • Remove the need of a double scroll bar in the administration content
  • Reduce the amount of blank space at the top of the page in the admininstration section on mobile phones

Visual Changes

Before this change:

There's blank space between the end of the content and the end of the page

The bottom of the navigation cannot be seen

Using the browser's back button:

Only the top of the page can be seen

After this change:

The page finishes when the content finishes

The whole navigation bar can be seen

Using the browser's back button:

The whole page can be seen

@javierm javierm self-assigned this Oct 18, 2019
@javierm javierm added this to Reviewing in Roadmap via automation Oct 18, 2019
@javierm javierm force-pushed the fix_equalizer_investments branch 12 times, most recently from d0313a7 to 3f974fc Compare October 21, 2019 16:49
@javierm javierm force-pushed the fix_equalizer_investments branch 2 times, most recently from f7f4dd2 to 245e74e Compare November 7, 2019 19:15
@javierm javierm force-pushed the fix_equalizer_investments branch 3 times, most recently from d841421 to b073fbf Compare November 17, 2019 22:20
In some situations where JavaScript makes content disappear, the height
of the element calculated by foundation's equalizer isn't recalculated,
leaving blank space at the bottom of the page. I've seen cases where a
blank vertical space of 2000 pixels is on the page.

Using flexbox solves the problem, since CSS takes care of everything.
We can move the button to toggle the menu to the main content, and
everything will look the same way while we'll need one div less.
We were using `overflow: scroll` as a workaround with a problem we had
with the equalizer. But now we never need an extra vertical scroll bar,
and we only need an extra horizontal scroll bar on small screens.

Since the dashboard was using the class `admin-content` as well, we need
to apply to the dashboard the same changes we've done in the admin
section. I've extracted them into a mixin.
@javierm javierm merged commit 3e0cada into master Dec 19, 2019
Roadmap automation moved this from Reviewing to Release 1.1.0 Dec 19, 2019
@javierm javierm deleted the fix_equalizer_investments branch December 19, 2019 15:27
smarques pushed a commit to venetochevogliamo/consul that referenced this pull request Apr 29, 2020
…estments

Fix blank space in admin content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Roadmap
  
Release 1.1.0
Development

Successfully merging this pull request may close these issues.

bug of navigation when try to go back Double scroll bar on admin-content
2 participants