diff --git a/src/components/ButtonWithDropdownMenu/index.tsx b/src/components/ButtonWithDropdownMenu/index.tsx index 34ec1d1e465a..0b607d6f241b 100644 --- a/src/components/ButtonWithDropdownMenu/index.tsx +++ b/src/components/ButtonWithDropdownMenu/index.tsx @@ -77,7 +77,7 @@ function ButtonWithDropdownMenu({ref, ...props}: ButtonWithDropdownM const dropdownAnchor = useRef(null); // We need to use isSmallScreenWidth instead of shouldUseNarrowLayout to apply correct popover styles // eslint-disable-next-line rulesdir/prefer-shouldUseNarrowLayout-instead-of-isSmallScreenWidth - const {isSmallScreenWidth, isInLandscapeMode} = useResponsiveLayout(); + const {isSmallScreenWidth} = useResponsiveLayout(); const dropdownButtonRef = isSplitButton ? buttonRef : mergeRefs(buttonRef, dropdownAnchor); const selectedItem = options.at(selectedItemIndex) ?? options.at(0); const areAllOptionsDisabled = options.every((option) => option.disabled); @@ -177,7 +177,7 @@ function ButtonWithDropdownMenu({ref, ...props}: ButtonWithDropdownM shouldStayNormalOnDisable={shouldStayNormalOnDisable} isLoading={isLoading} shouldRemoveRightBorderRadius - style={isSplitButton ? [styles.pr0, isInLandscapeMode ? undefined : styles.flex1] : {}} + style={isSplitButton ? [styles.pr0, styles.flexGrow1, styles.flexShrink1] : {}} extraSmall={buttonSize === CONST.DROPDOWN_BUTTON_SIZE.EXTRA_SMALL} large={buttonSize === CONST.DROPDOWN_BUTTON_SIZE.LARGE} medium={buttonSize === CONST.DROPDOWN_BUTTON_SIZE.MEDIUM}