File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ export interface ChatbotHeaderSelectorDropdownProps extends Omit<DropdownProps,
2828 isCompact ?: boolean ;
2929 /** Additional props passed to toggle */
3030 toggleProps ?: MenuToggleProps ;
31+ /** Custom width for the dropdown */
32+ dropdownWidth ?: string ;
3133}
3234
3335export const ChatbotHeaderSelectorDropdown : FunctionComponent < ChatbotHeaderSelectorDropdownProps > = ( {
@@ -40,6 +42,7 @@ export const ChatbotHeaderSelectorDropdown: FunctionComponent<ChatbotHeaderSelec
4042 menuToggleAriaLabel,
4143 isCompact,
4244 toggleProps,
45+ dropdownWidth,
4346 ...props
4447} : ChatbotHeaderSelectorDropdownProps ) => {
4548 const [ isOptionsMenuOpen , setIsOptionsMenuOpen ] = useState ( false ) ;
@@ -63,6 +66,9 @@ export const ChatbotHeaderSelectorDropdown: FunctionComponent<ChatbotHeaderSelec
6366 size = { isCompact ? 'sm' : undefined }
6467 className = { `${ isCompact ? 'pf-m-compact' : '' } ` }
6568 { ...toggleProps }
69+ style = { {
70+ width : dropdownWidth
71+ } }
6672 >
6773 { value }
6874 </ MenuToggle >
You can’t perform that action at this time.
0 commit comments