Narrow screens: Move asides into main prose and try to make it look reasonably OK#204
Merged
janezd merged 3 commits intobiolab:masterfrom Mar 12, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Improves the reading experience on narrow screens by making aside-style content stop floating outside the main prose and adding targeted small-screen layout overrides.
Changes:
- Introduces CSS custom properties for key layout sizes (aside width, prose width, gap) and changes them under a narrow-screen media query.
- Moves existing “float aside / expanding-side-img” behavior behind a
min-widthmedia query so it only applies on wider screens. - Adds narrow-screen-specific constraints for images, captions, code blocks, and container padding.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The result is not optimal, but it's better than nothing. Notes that are not written for narrow screens (i.e. that includes asides, large images, code...) will never look good there.
To see the actual changes, view the first commit: it puts the part that regulates asides into
@media, and adds some styling for narrower screens.The second commit just changes indentation, which confuses git's diff and makes the combined PR changes unreadable.