added table wrap to avoid data off screen (#32908)
Closes #32758 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
parent
0ac7db7a0b
commit
aec3eb91a8
1 changed files with 29 additions and 14 deletions
|
@ -16,6 +16,7 @@ import {
|
||||||
import {
|
import {
|
||||||
ExpandableRowContent,
|
ExpandableRowContent,
|
||||||
Table,
|
Table,
|
||||||
|
TableText,
|
||||||
Tbody,
|
Tbody,
|
||||||
Td,
|
Td,
|
||||||
Th,
|
Th,
|
||||||
|
@ -46,9 +47,9 @@ type ExpandableResourceRepresentation = ResourceRepresentation & {
|
||||||
};
|
};
|
||||||
|
|
||||||
const UriRenderer = ({ row }: { row: ResourceRepresentation }) => (
|
const UriRenderer = ({ row }: { row: ResourceRepresentation }) => (
|
||||||
<>
|
<TableText wrapModifier="truncate">
|
||||||
{row.uris?.[0]} <MoreLabel array={row.uris} />
|
{row.uris?.[0]} <MoreLabel array={row.uris} />
|
||||||
</>
|
</TableText>
|
||||||
);
|
);
|
||||||
|
|
||||||
export const AuthorizationResources = ({
|
export const AuthorizationResources = ({
|
||||||
|
@ -228,6 +229,7 @@ export const AuthorizationResources = ({
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<Td data-testid={`name-column-${resource.name}`}>
|
<Td data-testid={`name-column-${resource.name}`}>
|
||||||
|
<TableText wrapModifier="truncate">
|
||||||
<Link
|
<Link
|
||||||
to={toResourceDetails({
|
to={toResourceDetails({
|
||||||
realm,
|
realm,
|
||||||
|
@ -237,10 +239,23 @@ export const AuthorizationResources = ({
|
||||||
>
|
>
|
||||||
{resource.name}
|
{resource.name}
|
||||||
</Link>
|
</Link>
|
||||||
|
</TableText>
|
||||||
|
</Td>
|
||||||
|
<Td>
|
||||||
|
<TableText wrapModifier="truncate">
|
||||||
|
{resource.displayName}
|
||||||
|
</TableText>
|
||||||
|
</Td>
|
||||||
|
<Td>
|
||||||
|
<TableText wrapModifier="truncate">
|
||||||
|
{resource.type}
|
||||||
|
</TableText>
|
||||||
|
</Td>
|
||||||
|
<Td>
|
||||||
|
<TableText wrapModifier="truncate">
|
||||||
|
{resource.owner?.name}
|
||||||
|
</TableText>
|
||||||
</Td>
|
</Td>
|
||||||
<Td>{resource.displayName}</Td>
|
|
||||||
<Td>{resource.type}</Td>
|
|
||||||
<Td>{resource.owner?.name}</Td>
|
|
||||||
<Td>
|
<Td>
|
||||||
<UriRenderer row={resource} />
|
<UriRenderer row={resource} />
|
||||||
</Td>
|
</Td>
|
||||||
|
|
Loading…
Reference in a new issue