Skip to content

Commit 0691cf7

Browse files
Merge pull request #624 from dolthub/eric/fix_enum_column_dropdown
Fix styling on enum dropdown
2 parents fe4bc4b + 2120606 commit 0691cf7

File tree

1 file changed

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

1 file changed

+31
-1
lines changed

web/renderer/components/EditCellInput/Input.tsx

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,41 @@ 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+
maxWidth: "300px",
70+
};
71+
},
5572
singleValue: styles => {
56-
return { ...styles, marginBottom: "6px" };
73+
return {
74+
...styles,
75+
marginBottom: "6px",
76+
overflow: "visible",
77+
textOverflow: "clip",
78+
whiteSpace: "nowrap",
79+
};
80+
},
81+
option: styles => {
82+
return {
83+
...styles,
84+
whiteSpace: "normal",
85+
wordWrap: "break-word",
86+
};
5787
},
5888
};
5989
}}

0 commit comments

Comments
 (0)