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
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Upcoming Features
---

IAM Delegation: Parent Account UI fix ([#13011](https://github.com/linode/manager/pull/13011))
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ export const AccountDelegationsTable = ({
Account
</TableSortCell>
<TableCell
style={{ width: '53%' }}
style={{ width: '59%' }}
sx={{ display: { sm: 'table-cell', xs: 'none' } }}
>
Delegate Users
</TableCell>
<TableCell style={{ width: '20%' }} />
<TableCell style={{ width: '14%' }} />
</TableRow>
</TableHead>
<TableBody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,17 @@ export const AccountDelegationsTableRow = ({ delegation, index }: Props) => {
key={`delegation-${delegation.euuid}-${index}`}
>
<TableCell>
<Typography variant="body1">{delegation.company}</Typography>
<Typography
sx={{
maxWidth: 272,
overflow: 'hidden',
textOverflow: 'ellipsis',
whiteSpace: 'nowrap',
}}
variant="body1"
>
{delegation.company}
</Typography>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice - glad you didn't go with javascript truncation here πŸ‘

Should the length be adjusted for mobile viewports?

</TableCell>
<TableCell
sx={(theme) => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export const UpdateDelegationsDrawer = ({
euuid: delegation.euuid,
users: usersList,
});
enqueueSnackbar(`Delegate users updated.`, { variant: 'success' });
enqueueSnackbar(`Delegation updated`, { variant: 'success' });
handleClose();
} catch (errors) {
for (const error of errors) {
Expand Down Expand Up @@ -131,6 +131,9 @@ export const UpdateDelegationsDrawer = ({
<Typography
sx={{
marginBottom: theme.tokens.spacing.S8,
overflow: 'hidden',
textOverflow: 'ellipsis',
whiteSpace: 'nowrap',
}}
>
Update delegation for <strong>{delegation.company}:</strong>
Expand Down