File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed
epictrack-web/src/components Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,7 @@ const ProjectList = () => {
176
176
column = { column }
177
177
variant = "inline"
178
178
name = "rolesFilter"
179
+ maxWidth = "328px"
179
180
/>
180
181
) ;
181
182
} ,
Original file line number Diff line number Diff line change @@ -165,21 +165,24 @@ const FilterSelect = (props: SelectProps) => {
165
165
onBlur = { ( ) => setMenuIsOpen ( false ) }
166
166
ref = { selectRef }
167
167
styles = { {
168
- option : ( base , props ) => ( {
168
+ option : ( base , provided ) => ( {
169
169
...base ,
170
- whiteSpace : "nowrap " ,
170
+ whiteSpace : "normal " ,
171
171
overflow : "hidden" ,
172
172
textOverflow : "ellipsis" ,
173
173
display : "flex" ,
174
174
alignItems : "center" ,
175
175
padding : ".5rem .75rem .5rem 0px" ,
176
176
fontWeight : "normal" ,
177
177
fontSize : "1rem" ,
178
- background : props . isFocused ? Palette . neutral . bg . main : "transparent" ,
179
- color : props . isSelected
178
+ maxWidth : props . maxWidth ?? "100%" ,
179
+ background : provided . isFocused
180
+ ? Palette . neutral . bg . main
181
+ : "transparent" ,
182
+ color : provided . isSelected
180
183
? Palette . primary . accent . main
181
184
: Palette . neutral . accent . dark ,
182
- cursor : props . isFocused ? "pointer" : "default" ,
185
+ cursor : provided . isFocused ? "pointer" : "default" ,
183
186
} ) ,
184
187
control : ( base , props ) => ( {
185
188
...base ,
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ declare module "react-select/dist/declarations/src/Select" {
24
24
getOptionLabel ?: ( option : any ) => string ;
25
25
getOptionValue ?: ( option : any ) => string ;
26
26
label ?: string ;
27
+ maxWidth ?: string ;
27
28
} ;
28
29
filterAppliedCallback ?: ( value ?: string [ ] | string ) => void ;
29
30
filterClearedCallback ?: ( value ?: [ ] | "" ) => void ;
@@ -33,6 +34,7 @@ declare module "react-select/dist/declarations/src/Select" {
33
34
export type SelectProps = {
34
35
variant : "inline" | "bar" | "inline-standalone" ;
35
36
info ?: boolean ;
37
+ maxWidth ?: string ;
36
38
} & Props < OptionType > ;
37
39
38
40
export type TableFilterProps = {
You can’t perform that action at this time.
0 commit comments