Skip to content

Commit e312584

Browse files
committed
Clean up styles
1 parent ee0e7f8 commit e312584

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

site/src/components/SelectMenu/SelectMenu.tsx

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -39,23 +39,9 @@ export const SelectMenuButton = forwardRef<
3939
>((props, ref) => {
4040
const { startIcon, ...restProps } = props;
4141
return (
42-
<Button
43-
css={{
44-
// Icon and text should be aligned to the left
45-
justifyContent: "flex-start",
46-
flexShrink: 0,
47-
}}
48-
variant="outline"
49-
size="lg"
50-
className="flex items-center gap-2"
51-
ref={ref}
52-
{...restProps}
53-
>
54-
{startIcon && <div>{startIcon}</div>}
55-
<span
56-
// Make sure long text does not break the button layout
57-
className="text-left block overflow-hidden text-ellipsis flex-grow"
58-
>
42+
<Button variant="outline" size="lg" ref={ref} {...restProps}>
43+
{startIcon}
44+
<span className="text-left block overflow-hidden text-ellipsis flex-grow">
5945
{props.children}
6046
</span>
6147
<ChevronDownIcon />

0 commit comments

Comments
 (0)