From e825bc6b5bac50ceb7723d3507dc3585cdaff6bc Mon Sep 17 00:00:00 2001 From: Viktor Fomin Date: Tue, 19 Apr 2022 16:10:18 +0300 Subject: [PATCH] Web: Client: NavMenu: fix avatar size --- .../NavMenu/sub-components/profile-menu.js | 43 ++++++++++--------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/web/ASC.Web.Client/src/components/NavMenu/sub-components/profile-menu.js b/web/ASC.Web.Client/src/components/NavMenu/sub-components/profile-menu.js index 157c801f62..6fe908aeb8 100644 --- a/web/ASC.Web.Client/src/components/NavMenu/sub-components/profile-menu.js +++ b/web/ASC.Web.Client/src/components/NavMenu/sub-components/profile-menu.js @@ -96,8 +96,6 @@ const commonStyle = css` font-family: "Open Sans", sans-serif, Arial; font-style: normal; color: ${(props) => props.theme.menuContainer.color}; - margin-left: 60px; - margin-top: -3px; max-width: 300px; white-space: nowrap; overflow: hidden; @@ -114,6 +112,10 @@ export const StyledProfileMenu = styled(DropDownItem)` `; export const MenuContainer = styled.div` + display: flex; + flex-direction: row; + align-items: center; + gap: 12px; position: relative; height: 76px; background: ${(props) => props.theme.menuContainer.background}; @@ -121,15 +123,15 @@ export const MenuContainer = styled.div` padding: 16px; cursor: default; box-sizing: border-box; + + .avatar { + height: 40px; + width: 40px; + } `; MenuContainer.defaultProps = { theme: Base }; -export const AvatarContainer = styled.div` - display: inline-block; - float: left; -`; - export const MainLabelContainer = styled.div` font-size: 16px; line-height: 28px; @@ -178,19 +180,20 @@ class ProfileMenu extends React.Component { > - - - - {displayName} - {email} - - - + +
+ {displayName} + {email} + + + +
{children}