fix indentation

pull/4891/head
Joseph Izang 5 months ago committed by Aniket
parent b7f792247b
commit dbc6516380
  1. 7
      libs/remix-ui/tree-view/src/lib/tree-view-item/tree-view-item.css
  2. 12
      libs/remix-ui/tree-view/src/lib/tree-view-item/tree-view-item.tsx

@ -0,0 +1,7 @@
.remixui_mouseover {
}
.remixui_mouseover:hover {
cursor: pointer;
}

@ -12,7 +12,13 @@ export const TreeViewItem = (props: TreeViewItemProps) => {
}, [expand])
return (
<li ref={innerRef} key={`treeViewLi${id}`} data-id={`treeViewLi${id}`} className="li_tv" {...otherProps}>
<li
ref={innerRef}
key={`treeViewLi${id}`}
data-id={`treeViewLi${id}`}
className={`li_tv remixui_mouseover`}
{...otherProps}
>
<div
key={`treeViewDiv${id}`}
data-id={`treeViewDiv${id}`}
@ -28,7 +34,9 @@ export const TreeViewItem = (props: TreeViewItemProps) => {
) : null}
<span className="w-100 ml-1 pl-2">{label}</span>
</div>
{isExpanded ? children : null}
{isExpanded ? <div className="pl-3">
{children}
</div> : null}
</li>
)
}

Loading…
Cancel
Save