docs(block): add clarifying comment for overflow

This line is a bit confusing to me, so I thought I should clarify it!

See: 939da082b2
This commit is contained in:
Alois Klink
2025-07-29 15:45:06 +09:00
parent 8bb29fc879
commit b7a591b8d3

View File

@@ -272,6 +272,7 @@ function layoutBlocks(block: Block, db: BlockDB) {
}
let columnsFilled = child?.widthInColumns ?? 1;
if (columns > 0) {
// Make sure overflowing lines do not affect later lines
columnsFilled = Math.min(columnsFilled, columns - (columnPos % columns));
}
columnPos += columnsFilled;