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

AI-generated summary

A discussion on j+k keyboard shortcuts and small windows is ongoing. frictionel reports an issue where large posts are not fully visible on small screens due to being centered, and proposes a fix. sam suggests merging the fix but requests screenshots to ensure no regressions. frictionel provides a screencast instead, showcasing the before and after effects of the fix. The fix is later activated on meta, and frictionel expresses gratitude, stating it’s easier to navigate and read via keyboard.

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