Skip to content

Commit

Permalink
Merge pull request #36844 from narefyev91/add-more-space-for-avatar-p…
Browse files Browse the repository at this point in the history
…icker

Add more space for avatar picker in workspace profile page

(cherry picked from commit fe682d1)
  • Loading branch information
puneetlath authored and OSBotify committed Feb 21, 2024
1 parent b2eb5c2 commit 2f893f4
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 2f893f4

Please sign in to comment.