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:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user