Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updating modified dropdown styles #2946

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import './ModifiedDropdown.less';

Check warning on line 1 in weave-js/src/common/components/elements/ModifiedDropdown.tsx

View workflow job for this annotation

GitHub Actions / WeaveJS Lint and Compile

Run autofix to sort these imports!

import {Tooltip} from '@wandb/weave/components/Tooltip';
import _ from 'lodash';
Expand Down Expand Up @@ -34,6 +34,7 @@
import {makePropsAreEqual} from '../../util/shouldUpdate';
import {Struct} from '../../util/types';
import {Option} from '../../util/uihelpers';
import {IconChevronDown} from '../../../components/Icon';

type LabelCoord = {
top: number;
Expand Down Expand Up @@ -445,6 +446,7 @@
</div>
);
};

return wrapWithDragDrop(
<Dropdown
{...passProps}
Expand All @@ -470,6 +472,7 @@
}
}}
trigger={renderTrigger()}
icon={<IconChevronDown />}
/>
);
},
Expand Down Expand Up @@ -507,6 +510,10 @@
whiteSpace: 'nowrap',
overflow: 'hidden',
textOverflow: 'ellipsis',
// padding: '4px 8px',
height: '32px',
display: 'flex',
alignItems: 'center',
}}>
{showTooltip ? (
<Tooltip
Expand Down
Loading