mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-23 15:19:01 +01:00
Merge pull request #863 from mikaoelitiana/849-collection-item-dnd-hovered
feat: add class when collection name is hovered during drag and drop
This commit is contained in:
commit
4a23e75dee
@ -33,7 +33,8 @@ const Wrapper = styled.div`
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover,
|
||||||
|
&.item-hovered {
|
||||||
background: ${(props) => props.theme.sidebar.collection.item.hoverBg};
|
background: ${(props) => props.theme.sidebar.collection.item.hoverBg};
|
||||||
.menu-icon {
|
.menu-icon {
|
||||||
.dropdown {
|
.dropdown {
|
||||||
|
@ -84,7 +84,8 @@ const CollectionItem = ({ item, collection, searchText }) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const itemRowClassName = classnames('flex collection-item-name items-center', {
|
const itemRowClassName = classnames('flex collection-item-name items-center', {
|
||||||
'item-focused-in-tab': item.uid == activeTabUid
|
'item-focused-in-tab': item.uid == activeTabUid,
|
||||||
|
'item-hovered': isOver
|
||||||
});
|
});
|
||||||
|
|
||||||
const scrollToTheActiveTab = () => {
|
const scrollToTheActiveTab = () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user