Skip to content

Commit 6133d6c

Browse files
fix styling on enum dropdown
1 parent fe4bc4b commit 6133d6c

File tree

1 file changed

+29
-1
lines changed
  • web/renderer/components/EditCellInput

1 file changed

+29
-1
lines changed

web/renderer/components/EditCellInput/Input.tsx

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,39 @@ export default function Input(props: Props) {
4949
outerClassName={css.editSelect}
5050
mono
5151
small
52+
isSearchable
53+
menuPortalTarget={document.body}
5254
customStyles={s => {
5355
return {
5456
...s,
57+
control: styles => {
58+
return {
59+
...styles,
60+
minWidth: "100px",
61+
width: "100%",
62+
};
63+
},
64+
menu: styles => {
65+
return {
66+
...styles,
67+
width: "max-content",
68+
minWidth: "100%",
69+
};
70+
},
5571
singleValue: styles => {
56-
return { ...styles, marginBottom: "6px" };
72+
return {
73+
...styles,
74+
marginBottom: "6px",
75+
overflow: "visible",
76+
textOverflow: "clip",
77+
whiteSpace: "nowrap",
78+
};
79+
},
80+
option: styles => {
81+
return {
82+
...styles,
83+
whiteSpace: "nowrap",
84+
};
5785
},
5886
};
5987
}}

0 commit comments

Comments
 (0)