Skip to content

Commit

Permalink
center number
Browse files Browse the repository at this point in the history
  • Loading branch information
dangrous committed Jan 13, 2023
1 parent 4aee6b7 commit 8407368
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/components/RoomHeaderAvatars.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,10 @@ import * as StyleUtils from '../styles/StyleUtils';
const propTypes = {
/** Array of avatar URLs or icons */
icons: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.func])),

/** Whether show large Avatars */
shouldShowLargeAvatars: PropTypes.bool,
};

const defaultProps = {
icons: [],
shouldShowLargeAvatars: false,
};

const RoomHeaderAvatars = (props) => {
Expand All @@ -43,7 +39,7 @@ const RoomHeaderAvatars = (props) => {
const iconStyle = [
styles.roomHeaderAvatar,

// Because the border is applied to the Avatars when there are multiple they need to be slightly larger to match size
// Due to border-box box-sizing, the Avatars have to be larger when bordered to visually match size with non-bordered Avatars
StyleUtils.getAvatarStyle(CONST.AVATAR_SIZE.LARGE_BORDERED),
];
return (
Expand Down
2 changes: 1 addition & 1 deletion src/styles/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -2028,10 +2028,10 @@ const styles = {
avatarInnerTextChat: {
color: themeColors.textLight,
fontSize: variables.fontSizeNormal,
left: 1,
textAlign: 'center',
fontWeight: 'normal',
position: 'absolute',
marginLeft: -16,
},

pageWrapper: {
Expand Down

0 comments on commit 8407368

Please sign in to comment.