ecamp / ecamp/ecamp3

Indentation in lists in client print

Open
#10,169 2 comments 0 reactions 0 assignees View on GitHub
type: Print
Dominant language
PHP
Stars
156
Forks
72
Avg merge
12h 43m
Merged PRs (30d)
203

Description

In client print, we currently simply prepend a bullet point to the text in bullet lists, or the list number in enumeration lists. However, this means that when a list item has a long text spanning more than 1 line, the overflowing text is aligned with the bullet point rather than the first line of text.

![Screenshot_20260628-214932~2.png](https://github.com/user-attachments/assets/35d2804d-e08a-407a-9577-2d6d6f259e01)

We should properly generate the indentation by generating react-pdf `` nodes with margin or padding around list items, and fill the bullet or number into a `` node in there. Sizes have to be carefully chosen such that not too much space is wasted but still no layout inconsistency occurs when numbered items go above 10 or 20.

Contributor guide

Open the contributing guide

Research direction

Start by locating the client print list-rendering entry point and inspect how react-pdf View and Text nodes are currently used for bullets and enumeration items. The work is done when wrapped lines align with the first line's text and numbered items remain consistent for values above 10 or 20.

Written by the indexing model from the issue text.

Assessment

Tech stack
react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.