Skip to content

Commit

Permalink
move
Browse files Browse the repository at this point in the history
  • Loading branch information
gtarpenning committed Oct 10, 2024
1 parent 8f26dba commit 9f7e519
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {Box} from '@material-ui/core';
import {Circle} from '@mui/icons-material';
import {WBIcon} from '@wandb/ui';
import {PopupDropdown} from '@wandb/weave/common/components/PopupDropdown';
import {
DragDropState,
Expand All @@ -10,7 +9,6 @@ import {DragHandle} from '@wandb/weave/common/containers/DragDropContainer/DragH
import {Button} from '@wandb/weave/components/Button';
import {Pill} from '@wandb/weave/components/Tag';
import React, {useMemo} from 'react';
import styled from 'styled-components';

import {
MOON_300,
Expand All @@ -33,6 +31,7 @@ import {
} from '../../ecpConstants';
import {EvaluationComparisonState, getBaselineCallId} from '../../ecpState';
import {HorizontalBox} from '../../Layout';
import {DragHandleIcon} from './dragUtils';

export const EvaluationDefinition: React.FC<{
state: EvaluationComparisonState;
Expand Down Expand Up @@ -120,7 +119,6 @@ export const EvaluationDefinition: React.FC<{
icon="overflow-horizontal"
size="small"
variant="ghost"
// style={{marginLeft: '4px'}}
/>
}
/>
Expand Down Expand Up @@ -249,19 +247,3 @@ export const VerticalBar: React.FC = () => {
/>
);
};

const DragHandleIcon = styled(WBIcon).attrs({name: 'vertical-handle'})`
font-size: 26px;
border-radius: 50%;
color: gray300;
user-select: none;
cursor: grab;
&&&:hover {
background: gray100;
color: black;
}
&:active {
cursor: grabbing;
}
`;
DragHandle.displayName = 'S.DragHandle';
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/***** COPIED FROM app/src/util/dragDrop.tsx *****/

import {WBIcon} from '@wandb/ui';
import {
DragDropState,
DragSourceProps,
Expand Down Expand Up @@ -291,3 +292,19 @@ const DropIndicatorLine = styled.div<{
}
}}
`;

export const DragHandleIcon = styled(WBIcon).attrs({name: 'vertical-handle'})`
font-size: 26px;
border-radius: 50%;
color: gray300;
user-select: none;
cursor: grab;
&&&:hover {
background: gray100;
color: black;
}
&:active {
cursor: grabbing;
}
`;
DragHandleIcon.displayName = 'S.DragHandle';

0 comments on commit 9f7e519

Please sign in to comment.