`j`+`k` keyboard shortcuts and small windows

Similar to this old topic: The upper part of a post is hidden when the topic title is too long

Posts can be partly hidden (upper part) because of the <header> when using keyboard shortcuts for navigation, also large posts are not visible from their beginning on small windows or screens (like on a laptop) because they are centred.

What do you think about my fix? :slight_smile:

EDIT: I made a PR now.
https://github.com/discourse/discourse/pull/4163/commits/18a0a15c75b9412a351c034f533105add739c699

4 Likes

I would like to merge this in, but can you do some screenshots of before and after the fix … it is rather fiddly I want to make sure nothing regresses.

1 Like

I don’t think that screenshots show the difference as good as a screencast.

Before:

After:

5 Likes

:awthanks: Thank you for activating it here on meta… it’s now so much easier to navigate and read via keyboard!

5 Likes