-
-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix scrollbar appearing on tree nodes with code
This commit addresses unexpected horizontal scrollbars appearing in tree nodes due to incorrect padding calculations for inline code elements. The issue occurs when vertical padding pushes content beyond the node boundaries. The solution: - Simplify x-padding calculation by removing unnecessary font-size math - Calculate y-padding using line-height (lh) units for better scaling - Change code elements to inline-block for proper vertical alignment
- Loading branch information
1 parent
2f2813e
commit 25d0d37
Showing
1 changed file
with
48 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters