@@ -502,10 +502,12 @@ function MenuItem(
502502 const { isExecuting, singleExecution, waitForNavigate} = useContext ( MenuItemGroupContext ) ?? { } ;
503503 const popoverAnchor = useRef < View > ( null ) ;
504504
505+ const isCompact = viewMode === CONST . OPTION_MODE . COMPACT ;
505506 const isDeleted = style && Array . isArray ( style ) ? style . includes ( styles . offlineFeedback . deleted ) : false ;
506507 const descriptionVerticalMargin = shouldShowDescriptionOnTop ? styles . mb1 : styles . mt1 ;
507- const fallbackAvatarSize = viewMode === CONST . OPTION_MODE . COMPACT ? CONST . AVATAR_SIZE . SMALL : CONST . AVATAR_SIZE . DEFAULT ;
508+ const fallbackAvatarSize = isCompact ? CONST . AVATAR_SIZE . SMALL : CONST . AVATAR_SIZE . DEFAULT ;
508509 const firstRightIcon = floatRightAvatars . at ( 0 ) ;
510+
509511 const combinedTitleTextStyle = StyleUtils . combineStyles (
510512 [
511513 styles . flexShrink1 ,
@@ -663,6 +665,8 @@ function MenuItem(
663665 containerStyle ,
664666 combinedStyle ,
665667 ! interactive && styles . cursorDefault ,
668+ isCompact && styles . alignItemsCenter ,
669+ isCompact && styles . optionRowCompact ,
666670 ! shouldRemoveBackground &&
667671 StyleUtils . getButtonBackgroundColorStyle ( getButtonState ( focused || isHovered , pressed , success , disabled , interactive ) , true ) ,
668672 ...( Array . isArray ( wrapperStyle ) ? wrapperStyle : [ wrapperStyle ] ) ,
@@ -797,7 +801,7 @@ function MenuItem(
797801 style = { [
798802 styles . justifyContentCenter ,
799803 styles . flex1 ,
800- StyleUtils . getMenuItemTextContainerStyle ( isSmallAvatarSubscriptMenu ) ,
804+ StyleUtils . getMenuItemTextContainerStyle ( isSmallAvatarSubscriptMenu || isCompact ) ,
801805 titleContainerStyle ,
802806 ] }
803807 >
@@ -869,7 +873,7 @@ function MenuItem(
869873 </ View >
870874 </ View >
871875 </ View >
872- < View style = { [ styles . flexRow , styles . menuItemTextContainer , ! hasPressableRightComponent && styles . pointerEventsNone ] } >
876+ < View style = { [ styles . flexRow , StyleUtils . getMenuItemTextContainerStyle ( isCompact ) , ! hasPressableRightComponent && styles . pointerEventsNone ] } >
873877 { ! ! badgeText && (
874878 < Badge
875879 text = { badgeText }
@@ -919,7 +923,11 @@ function MenuItem(
919923 ) }
920924 { shouldShowRightIcon && (
921925 < View
922- style = { [ styles . popoverMenuIcon , styles . pointerEventsAuto , disabled && ! shouldUseDefaultCursorWhenDisabled && styles . cursorDisabled ] }
926+ style = { [
927+ styles . pointerEventsAuto ,
928+ StyleUtils . getMenuItemIconStyle ( isCompact ) ,
929+ disabled && ! shouldUseDefaultCursorWhenDisabled && styles . cursorDisabled ,
930+ ] }
923931 >
924932 < Icon
925933 src = { iconRight }
0 commit comments