Improve long list item rendering without aggressive word splitting#160
Open
yukihane wants to merge 2 commits intoathul:masterfrom
Open
Improve long list item rendering without aggressive word splitting#160yukihane wants to merge 2 commits intoathul:masterfrom
yukihane wants to merge 2 commits intoathul:masterfrom
Conversation
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.
Summary
This PR improves long list item rendering in the post body without forcing aggressive word splitting.
Changes
Add a minimal reproduction page:
exampleSite/content/posts/issue-157-list-wrap.mdUpdate list layout in
assets/css/main.css:text-indent: -2chwith a more stable bullet layout usingpadding-inline-start+::beforeabsolute positioning.post-content .body ulso non-body list UIs are unaffectedWhy this layout-based approach
This PR focuses on stabilizing bullet layout instead of introducing aggressive word-breaking rules.
Compared to adding
word-break: break-all, this approach keeps wrapping behavior closer to browser defaults:In short: this fixes the layout root cause without forcing global hard word-splitting.
Scope
Fixes #157