mirror of
https://github.com/logto-io/logto.git
synced 2025-03-31 22:51:25 -05:00
style(console): text ellipsis in user roles table (#2985)
This commit is contained in:
parent
0ee0370760
commit
4dfd86980c
2 changed files with 15 additions and 4 deletions
|
@ -17,9 +17,16 @@
|
|||
|
||||
tbody {
|
||||
td {
|
||||
max-width: 100%;
|
||||
@include _.text-ellipsis;
|
||||
font: var(--font-body-medium);
|
||||
}
|
||||
}
|
||||
|
||||
.name {
|
||||
display: block;
|
||||
@include _.text-ellipsis;
|
||||
}
|
||||
|
||||
.description {
|
||||
@include _.text-ellipsis;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -81,13 +81,17 @@ const UserRoles = () => {
|
|||
title: t('user_details.roles.name_column'),
|
||||
dataIndex: 'name',
|
||||
colSpan: 6,
|
||||
render: ({ id, name }) => <TextLink to={`/roles/${id}`}>{name}</TextLink>,
|
||||
render: ({ id, name }) => (
|
||||
<TextLink className={styles.name} to={`/roles/${id}`}>
|
||||
{name}
|
||||
</TextLink>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: t('user_details.roles.name_column'),
|
||||
dataIndex: 'description',
|
||||
colSpan: 9,
|
||||
render: ({ description }) => description,
|
||||
render: ({ description }) => <div className={styles.description}>{description}</div>,
|
||||
},
|
||||
{
|
||||
title: null,
|
||||
|
|
Loading…
Add table
Reference in a new issue