Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-13411-fixed-1771418285151.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Fixed
---

IAM: style fix for long username ([#13411](https://github.com/linode/manager/pull/13411))
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NewFeatureChip } from '@linode/ui';
import { NewFeatureChip, useTheme } from '@linode/ui';
import { Outlet, useLoaderData, useParams } from '@tanstack/react-router';
import React from 'react';

Expand All @@ -24,6 +24,7 @@ import { DelegateUserChip } from '../Shared/DelegateUserChip';

export const UserDetailsLanding = () => {
const flags = useFlags();
const theme = useTheme();
const { isIAMEnabled } = useIsIAMEnabled();
const showLimitedAvailabilityBadges =
flags.iamLimitedAvailabilityBadges && isIAMEnabled;
Expand Down Expand Up @@ -87,6 +88,9 @@ export const UserDetailsLanding = () => {
pathname: location.pathname,
sx: {
flexWrap: 'nowrap',
[theme.breakpoints.down(380)]: {
flexWrap: 'wrap',
},
'& > div:nth-of-type(3) h1': {
display: '-webkit-box',
'-webkit-line-clamp': '1',
Expand Down
Comment thread
bnussman-akamai marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ export const UserMenuPopover = (props: UserMenuPopoverProps) => {
backgroundColor: theme.tokens.alias.Background.Normal,
paddingX: theme.tokens.spacing.S24,
paddingY: theme.tokens.spacing.S16,
maxWidth: 304,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That was discussed with UX to avoid such cases:

Image

}),
},
}}
Expand All @@ -250,6 +251,7 @@ export const UserMenuPopover = (props: UserMenuPopoverProps) => {
sx={(theme) => ({
color: theme.tokens.alias.Content.Text.Primary.Default,
font: theme.tokens.alias.Typography.Label.Bold.L,
overflowWrap: 'break-word',
})}
>
{canSwitchBetweenParentOrProxyAccount && companyNameOrEmail
Expand Down