Skip to content

Commit 7777703

Browse files
committed
Align avatar gaps and balance column widths
1 parent 68569e1 commit 7777703

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/components/Tables/WorkspaceRoomsTable/WorkspaceRoomsTableRow.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ function WorkspaceRoomsTableRow({item, rowIndex, shouldUseNarrowTableLayout}: Wo
7070
<View style={[styles.flex1, styles.flexRow, styles.gap3, styles.alignItemsCenter]}>
7171
<ReportActionAvatars
7272
noRightMarginOnSubscriptContainer
73+
singleAvatarContainerStyle={[styles.mr0]}
7374
reportID={item.reportID}
7475
size={CONST.AVATAR_SIZE.DEFAULT}
7576
/>
@@ -101,6 +102,7 @@ function WorkspaceRoomsTableRow({item, rowIndex, shouldUseNarrowTableLayout}: Wo
101102
<View style={[styles.flex1, styles.flexRow, styles.gap3, styles.alignItemsCenter]}>
102103
<ReportActionAvatars
103104
noRightMarginOnSubscriptContainer
105+
singleAvatarContainerStyle={[styles.mr0]}
104106
reportID={item.reportID}
105107
size={CONST.AVATAR_SIZE.SMALL}
106108
/>
@@ -111,7 +113,7 @@ function WorkspaceRoomsTableRow({item, rowIndex, shouldUseNarrowTableLayout}: Wo
111113
/>
112114
</View>
113115

114-
<View style={[styles.flex1, styles.flexRow, styles.gap2, styles.alignItemsCenter]}>
116+
<View style={[styles.flex1, styles.flexRow, styles.gap3, styles.alignItemsCenter]}>
115117
{!!item.ownerDisplayName && (
116118
<>
117119
{!!item.ownerAccountID && (

src/components/Tables/WorkspaceRoomsTable/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function WorkspaceRoomsTable({rooms}: WorkspaceRoomsTableProps) {
2727
{key: 'name', label: translate('common.name')},
2828
{key: 'createdBy', label: translate('common.createdBy')},
2929
{key: 'members', label: translate('common.members'), width: variables.workspaceRoomsMembersColumnWidth},
30-
{key: 'actions', label: '', styling: {containerStyles: [styles.justifyContentEnd, styles.pr3]}},
30+
{key: 'actions', label: '', width: variables.workspaceRoomsActionsColumnWidth, styling: {containerStyles: [styles.justifyContentEnd, styles.pr3]}},
3131
];
3232

3333
const compareItems: CompareItemsCallback<WorkspaceRoomRowData, WorkspaceRoomsTableColumnKey> = (a, b, activeSorting) => {

src/styles/variables.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ export default {
331331

332332
searchTypeColumnWidth: 52,
333333
workspaceRoomsMembersColumnWidth: 80,
334+
workspaceRoomsActionsColumnWidth: 40,
334335

335336
gbrTooltipShiftHorizontal: -14,
336337
gbrTooltipShiftVertical: -16,

0 commit comments

Comments
 (0)