Skip to content

fix(web): widen ordered-list padding to unclip double-digit numbers#1898

Open
liujunGH wants to merge 2 commits into
MoonshotAI:mainfrom
liujunGH:fix/list-number-padding
Open

fix(web): widen ordered-list padding to unclip double-digit numbers#1898
liujunGH wants to merge 2 commits into
MoonshotAI:mainfrom
liujunGH:fix/list-number-padding

Conversation

@liujunGH

Copy link
Copy Markdown

The shared list rule in Markdown.vue sets padding-left: 1.4em on both ul and ol. That gutter only fits a single digit, so any ordered list with 10+ items renders "0." where "10." should be (the leading "1" is clipped).

Before / After

padding "10." renders as
Before 1.4em "0." (leading digit clipped)
After 2em (ol only) "10."

The fix gives ol its own padding-left: 2em; ul stays at 1.4em since bullet markers are narrow.

@changeset-bot

changeset-bot Bot commented Jul 19, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e54c638

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@moonshot-ai/kimi-code Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

liujunGH added 2 commits July 19, 2026 14:23
The shared list rule sets padding-left: 1.4em on both ul and ol. That
gutter only fits a single digit, so any ordered list with 10+ items
renders "0." where "10." should be. Give ol its own 2em padding;
ul stays at 1.4em since bullet markers are narrow.
@liujunGH
liujunGH force-pushed the fix/list-number-padding branch from bbb8016 to e54c638 Compare July 19, 2026 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant