diff --git a/src-web/components/core/tree/Tree.tsx b/src-web/components/core/tree/Tree.tsx index 640ff52f..01313b13 100644 --- a/src-web/components/core/tree/Tree.tsx +++ b/src-web/components/core/tree/Tree.tsx @@ -432,10 +432,13 @@ function TreeInner( '[&:focus-within]:[&_.tree-item.selected]:bg-surface-active', '[&:not(:focus-within)]:[&_.tree-item.selected]:bg-surface-highlight', - // Round the items, but only if the ends of the selection + // Round the items, but only if the ends of the selection. + // Also account for the drop marker being in between items '[&_.tree-item]:rounded-md', '[&_.tree-item.selected+.tree-item.selected]:rounded-t-none', + '[&_.tree-item.selected+.drop-marker+.tree-item.selected]:rounded-t-none', '[&_.tree-item.selected:has(+.tree-item.selected)]:rounded-b-none', + '[&_.tree-item.selected:has(+.drop-marker+.tree-item.selected)]:rounded-b-none', )} > diff --git a/src-web/components/core/tree/TreeDropMarker.tsx b/src-web/components/core/tree/TreeDropMarker.tsx index 19fcaa4e..dd659bec 100644 --- a/src-web/components/core/tree/TreeDropMarker.tsx +++ b/src-web/components/core/tree/TreeDropMarker.tsx @@ -27,7 +27,7 @@ export const TreeDropMarker = memo(function TreeDropMarker({ if (collapsed) return null; return ( -
+
);