Skip to content

Commit e4f3cfc

Browse files
authored
Merge pull request Expensify#67831 from dominictb/fix/66867
fix: default badge is misaligned on medium screens
2 parents 699e3ae + 63c28ab commit e4f3cfc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/pages/workspace/WorkspacesListRow.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ function WorkspacesListRow({
128128
const {translate} = useLocalize();
129129
const threeDotsMenuContainerRef = useRef<View>(null);
130130
const {shouldUseNarrowLayout} = useResponsiveLayout();
131+
const isNarrow = layoutWidth === CONST.LAYOUT_WIDTH.NARROW;
131132

132133
const ownerDetails = ownerAccountID && getPersonalDetailsByIDs({accountIDs: [ownerAccountID], currentUserAccountID: currentUserPersonalDetails.accountID}).at(0);
133134
const threeDotsMenuRef = useRef<{hidePopoverMenu: () => void; isPopupMenuVisible: boolean}>(null);
@@ -165,7 +166,6 @@ function WorkspacesListRow({
165166
}
166167

167168
const isWide = layoutWidth === CONST.LAYOUT_WIDTH.WIDE;
168-
const isNarrow = layoutWidth === CONST.LAYOUT_WIDTH.NARROW;
169169

170170
const isDeleted = style && Array.isArray(style) ? style.includes(styles.offlineFeedback.deleted) : false;
171171

@@ -237,7 +237,7 @@ function WorkspacesListRow({
237237
style={[styles.flex1, styles.flexGrow1, styles.textStrong, isDeleted ? styles.offlineFeedback.deleted : {}]}
238238
/>
239239
</View>
240-
{shouldUseNarrowLayout && ThreeDotMenuOrPendingIcon}
240+
{isNarrow && ThreeDotMenuOrPendingIcon}
241241
</View>
242242
<View style={[styles.flexRow, isWide && styles.flex1, isWide && styles.workspaceOwnerSectionMinWidth, styles.gap2, styles.alignItemsCenter]}>
243243
{!!ownerDetails && (
@@ -290,7 +290,7 @@ function WorkspacesListRow({
290290
</View>
291291
</View>
292292

293-
{!shouldUseNarrowLayout && ThreeDotMenuOrPendingIcon}
293+
{!isNarrow && ThreeDotMenuOrPendingIcon}
294294
</View>
295295
);
296296
}

0 commit comments

Comments
 (0)