Skip to content

Commit

Permalink
number list style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ibastawisi committed Jan 15, 2025
1 parent aacfd26 commit 00ba58a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/editor/utils/docx/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export function $convertListItemNode(node: ListItemNode) {
return new Paragraph({
alignment,
indent: {
start: 22 * 15 * (indent + 1),
hanging: 24 * 15,
start: 16 * 15 * (indent + 1),
hanging: 16 * 15,
},
bidirectional: dir === 'rtl',
children: [new CheckBox({ checked }), new TextRun({ text: ' ', })],
Expand All @@ -28,8 +28,8 @@ export function $convertListItemNode(node: ListItemNode) {
alignment,
numbering: { reference: listKey, level: indent, },
indent: {
start: 22 * 15 * (indent + 1),
hanging: 24 * 15,
start: 8 * 15 * (indent + 1) + value.length * 8 * 15,
hanging: 8 * 15 + value.length * 8 * 15,
},
bidirectional: dir === 'rtl',
});
Expand Down

0 comments on commit 00ba58a

Please sign in to comment.