File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -189,7 +189,6 @@ const DocumentTreeItem: React.FC<DocumentTreeItemProps> = (props) => {
189189 }
190190
191191 const safeIndent = Math . max ( indentPerLevel , 0 ) ;
192- const paddingLeft = level > 0 ? level * safeIndent : 0 ;
193192 const paddingTopBottom = Math . max ( verticalSpacing , 0 ) ;
194193
195194 return (
@@ -201,7 +200,6 @@ const DocumentTreeItem: React.FC<DocumentTreeItemProps> = (props) => {
201200 onDragLeave = { handleDragLeave }
202201 onDrop = { handleDrop }
203202 onContextMenu = { handleContextMenu }
204- style = { { paddingLeft : `${ paddingLeft } px` } }
205203 className = "relative"
206204 data-item-id = { node . id }
207205 >
@@ -270,7 +268,10 @@ const DocumentTreeItem: React.FC<DocumentTreeItemProps> = (props) => {
270268 { dropPosition === 'inside' && < div className = "absolute inset-0 border-2 border-primary rounded-md pointer-events-none bg-primary/10" /> }
271269
272270 { isFolder && isExpanded && (
273- < ul className = "m-0 pl-0 list-none space-y-0" >
271+ < ul
272+ className = "m-0 pl-0 list-none space-y-0"
273+ style = { { marginLeft : `${ safeIndent } px` } }
274+ >
274275 { node . children . map ( ( childNode , index ) => (
275276 < DocumentTreeItem
276277 key = { childNode . id }
You can’t perform that action at this time.
0 commit comments