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

Hide the top bar in post template on mobile devices when the viewer continues to scroll down #459

Closed
4 tasks done
linhandev opened this issue Dec 8, 2021 · 4 comments
Closed
4 tasks done
Labels
enhancement New feature or request
Milestone

Comments

@linhandev
Copy link

Checklist

Is your feature request related to a problem? Please describe

No. I'd consider this as an enhancement when viewing blog content on horizontal small screens.

Describe the solution you'd like

Automatically hide the top bar when

  1. content is displayed on a small screen
  2. the user keeps scrolling down for a certain distance

And display the top bar back when the viewer start scrolling up.

Describe alternatives you've considered

Additional context

I was doing some note taking. The post contains many long bullet lines so it's more preferable to view then horizontally on mobile devices. The address bar for chrome will hide itself when I'm scrolling down, giving the content more space. I think if we can implement something similar with the top bar of the post page, it will give even more space for the content and would make reading easier.

image

image

@linhandev linhandev added the enhancement New feature or request label Dec 8, 2021
@stale
Copy link

stale bot commented Jan 7, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale No activity label Jan 7, 2022
@cotes2020
Copy link
Owner

It is a good idea to automatically hide the top bar on mobile devices, but I think this is only necessary for landscape orientation, not for portrait orientation, because now mobile phone screens have a large aspect ratio.

@stale stale bot removed the stale No activity label Jan 7, 2022
@linhandev
Copy link
Author

I agree, it should be very nice to have this feature in landscape.

@LouisTay
Copy link

有没有办法把这个功能关闭啊?我就是想要一直有top bar,本来这个top bar的设计我就觉得很好啊,很简洁也不占地方,为啥要隐藏?这样在手机上反而不方便到主页,还需要上滑一下调出top bar。
而且我看这个在电脑端也有bug,有时候会回到顶部了,top bar还自动消失了。

2022-03-22.12.40.00.mp4

dkbnz pushed a commit to dkbnz/jekyll-theme-chirpy that referenced this issue Jul 12, 2022
shihtiy-tw pushed a commit to shihtiy-tw/shihtiy-tw.github.io that referenced this issue Nov 26, 2022
sanjidnet pushed a commit to sanjidnet/sanjidnet.github.io that referenced this issue Jan 9, 2023
Ap3x pushed a commit to Ap3x/ap3x.github.com that referenced this issue Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants