question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add more space between the bottom of the layout and sticky footer

See original GitHub issue

Is your proposal related to a problem?

When using the admin editing interface on mobile or desktop devices it is hard to reach the buttons at the end of a page as they are so close to the main page actions.

Describe the solution you’d like

Just add some margin to the bottom so the last editing fields do not stick to the bottom edge of the screen.

This applies to all admin views, so this should be added in the basic layout file.

Describe alternatives you’ve considered

None

Additional context

  • Using safari on iPhone
  • It is a problem on all devices

Adding padding-bottom: 10rem; to .content appears to be close - but check if that fixes the problem on various device sizes without being too large.

Note the larger ‘purple’ padding block and the highlighted added CSS.

Screen Shot 2022-09-29 at 7 21 41 am

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:34 (27 by maintainers)

github_iconTop GitHub Comments

1reaction
mohammadareeb95commented, Oct 25, 2022

Safari

https://user-images.githubusercontent.com/77102111/197854555-e1f1938f-da7f-4ca3-b1e3-7cf76d9ff539.mp4

Chrome

https://user-images.githubusercontent.com/77102111/197859471-9892f803-ce95-4ea8-8eef-35c2d8031b8a.mp4

Firefox

https://user-images.githubusercontent.com/77102111/197859574-d174eca7-a7ee-48a4-949b-405a22c101d3.mp4

  • I can confirm that very quick scroll in Safari bumps back and hides the save draft button. But, I also noticed this behaviour on Tab refresh. Meaning if I try to scroll very quickly another time, it doesn’t bump back. On the contrary, if I refresh or load the page again, bumping can be visible.
  • This behaviour is not found in Chrome or Firefox
1reaction
thibaudcolascommented, Oct 10, 2022

Hi folks, no need for you to ask – just show us you understand the problem, explain what you intend to do, and you can get going with making a pull request. It’s better if only one person works on a given problem at a time, so this is normally first-come-first-served.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do you get the footer to stay at the bottom of a Web page?
Probably the most obvious and non-hacky way to go about a sticky footer would be to make use of the new css viewport...
Read more >
Sticky Footer, Five Ways | CSS-Tricks
It's that bottom margin plus the height of the footer that need to be added together to subtract from the viewport height. And...
Read more >
Sticky footers - CSS: Cascading Style Sheets - MDN Web Docs
A sticky footer pattern is one where the footer of your page "sticks" to the bottom of the viewport in cases where the...
Read more >
HOW to keep your FOOTER at the bottom of the page with CSS
Well, in this CSS sticky footer tutorial, I'll show you how to prevent that issue! Created by Gregg Fine. Download my FREE "Google...
Read more >
Sticky Footer — Solved by Flexbox — Cleaner, hack-free CSS
While mostly known for laying out content in the horizontal direction, Flexbox actually works just as well for vertical layout problems. All you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found