Sivan22 / otzaria

A modern app that brings the jewish library to any device
https://sivan22.github.io/otzaria-download/
73 stars 8 forks source link

Fix alignment of files and folders in book search tree #67

Closed yisrael-rosen closed 2 months ago

yisrael-rosen commented 2 months ago

Previously, the book tree checklist screen was incorrectly calculating the horizontal padding for items by only considering the current nesting level. This resulted in misaligned titles.

This commit updates the logic to use (level - 1) when computing the left padding amount. By subtracting one from the item's level, the padding is adjusted to ensure each item is properly indented based on its hierarchy in the tree.

The level-minus-one approach fixes the alignment issues and provides a cleaner, more intuitive layout of parent/child items in the checklist.

Closes #50

yisrael-rosen commented 2 months ago

After fix image

YOSEFTT commented 2 months ago

@yisrael-rosen תראה מה כתבתי לך שם ב #50