Skip to content

fix: improve numbered list alignment for multi-digit numbers#12478

Open
Vi-Ku wants to merge 2 commits intologseq:masterfrom
Vi-Ku:fix/numbered-list-alignment-9515
Open

fix: improve numbered list alignment for multi-digit numbers#12478
Vi-Ku wants to merge 2 commits intologseq:masterfrom
Vi-Ku:fix/numbered-list-alignment-9515

Conversation

@Vi-Ku
Copy link
Copy Markdown

@Vi-Ku Vi-Ku commented Mar 27, 2026

Fixes #9515

Problem

Numbered list items with 2+ digit numbers (10, 100, etc.) have their numbers overlapping with the block content. This happens because the .bullet-container.as-order-list uses a fixed width of 1.4em, which is only wide enough for single-digit numbers.

Fix

In src/main/frontend/components/block.css:

  • Changed width: 1.4emwidth: auto so the container grows with the number length
  • Kept min-width: 1.4em to maintain consistent sizing for single-digit numbers
  • Changed justify-centerjustify-end to right-align numbers (so the dots align vertically)
  • Added pr-[2px] for spacing between the number and block content

Before

1. Content
2. Content
10. Content   ← overlaps
100. Content  ← worse

After

  1. Content
  2. Content
 10. Content
100. Content

…9515)

The bullet container for ordered lists used a fixed width of 1.4em,
which is too narrow for numbers with 2+ digits (10, 100, etc.),
causing the number to overlap with the block content.

Changes:
- Set width to auto so it grows with number length
- Keep min-width: 1.4em for single-digit numbers
- Right-align numbers (justify-end) for consistent dot alignment
- Add small right padding for spacing between number and content
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 27, 2026

CLA assistant check
All committers have signed the CLA.

@Vi-Ku
Copy link
Copy Markdown
Author

Vi-Ku commented Mar 27, 2026

recheck

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.

Inappropriate alignment for numbered list

2 participants