Skip to content

Commit

Permalink
Add more space for avatar picker in workspace profile page
Browse files Browse the repository at this point in the history
  • Loading branch information
narefyev91 committed Feb 20, 2024
1 parent a824e96 commit e751f40
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/workspace/WorkspaceProfilePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function WorkspaceProfilePage({policy, currencyList, route}) {
)}
type={CONST.ICON_TYPE_WORKSPACE}
fallbackIcon={Expensicons.FallbackWorkspaceAvatar}
style={[styles.mb3, styles.mtn17, styles.alignItemsStart, styles.sectionMenuItemTopDescription]}
style={[styles.mb3, isSmallScreenWidth ? styles.mtn17 : styles.mtn20, styles.alignItemsStart, styles.sectionMenuItemTopDescription]}
isUsingDefaultAvatar={!lodashGet(policy, 'avatar', null)}
onImageSelected={(file) => Policy.updateWorkspaceAvatar(lodashGet(policy, 'id', ''), file)}
onImageRemoved={() => Policy.deleteWorkspaceAvatar(lodashGet(policy, 'id', ''))}
Expand Down
4 changes: 4 additions & 0 deletions src/styles/utils/spacing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,10 @@ export default {
marginTop: -68,
},

mtn20: {
marginTop: -80,
},

mb0: {
marginBottom: 0,
},
Expand Down

0 comments on commit e751f40

Please sign in to comment.