0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

style(console): text ellipsis in roles table (#2984)

This commit is contained in:
Xiao Yijun 2023-01-19 00:01:03 +08:00 committed by GitHub
parent 95a44929a5
commit 3c1793e6ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 2 deletions

View file

@ -11,9 +11,10 @@
.content {
padding-right: _.unit(4);
max-width: 100%;
overflow: hidden;
.title {
display: block;
font: var(--font-body-medium);
color: var(--color-text-link);
text-decoration: none;

View file

@ -1,3 +1,9 @@
@use '@/scss/underscore' as _;
.search {
width: 306px;
}
.description {
@include _.text-ellipsis;
}

View file

@ -77,7 +77,7 @@ const Roles = () => {
title: t('roles.role_description'),
dataIndex: 'description',
colSpan: 6,
render: ({ description }) => description,
render: ({ description }) => <div className={styles.description}>{description}</div>,
},
{
title: <span>{t('roles.assigned_users')}</span>,