Skip to content

Commit

Permalink
Merge pull request #44716 from bernhardoj/fix/44639-ws-name-doesnt-sh…
Browse files Browse the repository at this point in the history
…ow-for-pending-join-ws

Fix pending join workspace name is not displayed
  • Loading branch information
yuwenmemon authored Jul 3, 2024
2 parents 3b18d08 + 94167e5 commit ad2b192
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
6 changes: 3 additions & 3 deletions src/pages/workspace/WorkspacesListRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ function WorkspacesListRow({
const isDeleted = style && Array.isArray(style) ? style.includes(styles.offlineFeedback.deleted) : false;

const ThreeDotMenuOrPendingIcon = (
<View style={[styles.flexRow]}>
<View style={[styles.flexRow, !isSmallScreenWidth && styles.workspaceThreeDotMenu]}>
{isJoinRequestPending && (
<View style={[styles.flexRow, styles.gap2, styles.alignItemsCenter, styles.flex1, styles.justifyContentEnd, isNarrow && styles.workspaceListBadge]}>
<View style={[styles.flexRow, styles.gap2, styles.alignItemsCenter, styles.justifyContentEnd]}>
<Badge
text={translate('workspace.common.requested')}
textStyles={styles.textStrong}
Expand All @@ -154,7 +154,7 @@ function WorkspacesListRow({
</View>
)}
{!isJoinRequestPending && (
<View style={[styles.flexRow, styles.ml2, styles.gap1, !isSmallScreenWidth && styles.workspaceThreeDotMenu]}>
<View style={[styles.flexRow, styles.ml2, styles.gap1]}>
<View style={[styles.flexRow, styles.gap2, styles.alignItemsCenter, isNarrow && styles.workspaceListRBR]}>
<BrickRoadIndicatorIcon brickRoadIndicator={brickRoadIndicator} />
</View>
Expand Down
9 changes: 2 additions & 7 deletions src/styles/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3359,13 +3359,8 @@ const styles = (theme: ThemeColors) =>
},

workspaceThreeDotMenu: {
marginLeft: 84,
},

workspaceListBadge: {
flexDirection: 'column',
justifyContent: 'flex-start',
marginTop: 6,
justifyContent: 'flex-end',
width: 124,
},

workspaceListRBR: {
Expand Down

0 comments on commit ad2b192

Please sign in to comment.