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": "& > div":
{ {
pointerEvents: "none" pointerEvents: "none"
}, }
height: "54px",
overflow: "hidden"
}, },
sorting: sorting:
{ {
pointerEvents: "none", pointerEvents: "none"
height: "54px",
overflow: "hidden"
}, },
dragging: dragging:
{ {
@@ -50,6 +50,8 @@ export default function CollectionView({ collection, index: collectionIndex, dra
<CollectionHeader dragHandleProps={ activatorProps } dragHandleRef={ setActivatorNodeRef } /> <CollectionHeader dragHandleProps={ activatorProps } dragHandleRef={ setActivatorNodeRef } />
{ (!activeItem || activeItem.item.type !== "collection") && !dragOverlay &&
<>
{ collection.items.length < 1 ? { collection.items.length < 1 ?
<div className={ cls.empty }> <div className={ cls.empty }>
<CollectionsRegular fontSize={ 32 } /> <CollectionsRegular fontSize={ 32 } />
@@ -71,6 +73,8 @@ export default function CollectionView({ collection, index: collectionIndex, dra
</SortableContext> </SortableContext>
</div> </div>
} }
</>
}
</div > </div >
</CollectionContext.Provider> </CollectionContext.Provider>
); );