1
0
mirror of https://github.com/XFox111/TabsAsideExtension.git synced 2026-04-22 07:58:01 +03:00

fix: collection collapses on tab/group drag

This commit is contained in:
2025-07-06 12:34:02 +03:00
parent 1a274348e0
commit 525130b7e9
2 changed files with 26 additions and 26 deletions
@@ -84,15 +84,11 @@ export const useStyles_CollectionView = makeStyles({
"& > div":
{
pointerEvents: "none"
},
height: "54px",
overflow: "hidden"
}
},
sorting:
{
pointerEvents: "none",
height: "54px",
overflow: "hidden"
pointerEvents: "none"
},
dragging:
{
@@ -50,6 +50,8 @@ export default function CollectionView({ collection, index: collectionIndex, dra
<CollectionHeader dragHandleProps={ activatorProps } dragHandleRef={ setActivatorNodeRef } />
{ (!activeItem || activeItem.item.type !== "collection") && !dragOverlay &&
<>
{ collection.items.length < 1 ?
<div className={ cls.empty }>
<CollectionsRegular fontSize={ 32 } />
@@ -71,6 +73,8 @@ export default function CollectionView({ collection, index: collectionIndex, dra
</SortableContext>
</div>
}
</>
}
</div >
</CollectionContext.Provider>
);