mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-19 15:31:19 +02:00
Fix sidebar border
This commit is contained in:
@@ -512,7 +512,7 @@ function SidebarItems({
|
|||||||
className={classNames(
|
className={classNames(
|
||||||
tree.depth > 0 && 'border-l border-highlight',
|
tree.depth > 0 && 'border-l border-highlight',
|
||||||
tree.depth === 0 && 'ml-0',
|
tree.depth === 0 && 'ml-0',
|
||||||
tree.depth >= 1 && 'ml-[1.3em]',
|
tree.depth >= 1 && 'ml-[1.2em]',
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{tree.children.map((child, i) => (
|
{tree.children.map((child, i) => (
|
||||||
@@ -770,7 +770,7 @@ const SidebarItem = forwardRef(function SidebarItem(
|
|||||||
data-active={isActive}
|
data-active={isActive}
|
||||||
data-selected={selected}
|
data-selected={selected}
|
||||||
className={classNames(
|
className={classNames(
|
||||||
'w-full flex gap-2 items-center text-sm h-xs px-1.5 rounded-md transition-colors',
|
'w-full flex gap-1.5 items-center text-sm h-xs px-1.5 rounded-md transition-colors',
|
||||||
editing && 'ring-1 focus-within:ring-focus',
|
editing && 'ring-1 focus-within:ring-focus',
|
||||||
isActive && 'bg-highlightSecondary text-gray-800',
|
isActive && 'bg-highlightSecondary text-gray-800',
|
||||||
!isActive &&
|
!isActive &&
|
||||||
|
|||||||
Reference in New Issue
Block a user