Skip to content

Commit

Permalink
fix: right alignement to the app icon
Browse files Browse the repository at this point in the history
  • Loading branch information
MontaGhanmy committed Oct 14, 2024
1 parent 9095dd9 commit 3858145
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
4 changes: 2 additions & 2 deletions tdrive/frontend/src/app/components/menus/menus-body-layer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ export default class MenusBodyLayer extends React.Component {
zIndex: 1050,
position: 'absolute',
transform: item.positionType === 'bottom' ? '' : 'translateY(-50%)',
left: item.position.x,
top: item.position.y,
left: item.position.x - 140,
top: item.position.y + 2,
marginTop: item.position.marginTop,
marginLeft: item.position.marginLeft,
}}
Expand Down
17 changes: 0 additions & 17 deletions tdrive/frontend/src/app/views/client/common/account.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
import Avatar from '@atoms/avatar';
import { Base, Info } from '@atoms/text';
import Menu from '@components/menus/menu';
import LoginService from '@features/auth/login-service';
import { useCurrentUser } from '@features/users/hooks/use-current-user';
import currentUserService from '@features/users/services/current-user-service';
import AccountParameter from '@views/client/popup/UserParameter/UserParameter';
import Languages from '../../../features/global/services/languages-service';
import ModalManagerDepreciated from '@deprecated/popupManager/popupManager';
import FeatureTogglesService, {
FeatureNames,
} from '@features/global/services/feature-toggles-service';

export default ({ sidebar }: { sidebar?: boolean }): JSX.Element => {
const { user } = useCurrentUser();
Expand Down Expand Up @@ -47,19 +43,6 @@ export default ({ sidebar }: { sidebar?: boolean }): JSX.Element => {
avatar={user.thumbnail}
title={currentUserService.getFullName(user)}
/>
<div
className={'sm:block ml-2 mr-2 flex flex-col overflow-hidden ' + (sidebar ? '' : 'hidden')}
>
<Base className="font-bold overflow-hidden text-ellipsis whitespace-nowrap w-full block -mb-1">
{currentUserService.getFullName(user)}
</Base>

{ !FeatureTogglesService.isActiveFeatureName(FeatureNames.COMPANY_DISPLAY_EMAIL) && (
<Info className="font-semibold overflow-hidden text-ellipsis whitespace-nowrap w-full">
{user.email}
</Info>
)}
</div>
</Menu>
);
};

1 comment on commit 3858145

@ericlinagora
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah this is annoying, having the email is super useful when customers send screenshots for ex, or when testing multiple users, or for people with multiple accounts to know where they are, etc...

Please sign in to comment.