mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
style(console): text ellipsis in permission table (#2983)
This commit is contained in:
parent
027572a966
commit
7525f7d20b
2 changed files with 17 additions and 4 deletions
|
@ -17,16 +17,26 @@
|
|||
|
||||
tbody {
|
||||
td {
|
||||
max-width: 100%;
|
||||
@include _.text-ellipsis;
|
||||
font: var(--font-body-medium);
|
||||
}
|
||||
}
|
||||
|
||||
.name {
|
||||
display: inline-block;
|
||||
max-width: 100%;
|
||||
vertical-align: bottom;
|
||||
padding: _.unit(1) _.unit(2);
|
||||
border-radius: 6px;
|
||||
background: var(--color-neutral-95);
|
||||
@include _.text-ellipsis;
|
||||
}
|
||||
|
||||
.description {
|
||||
@include _.text-ellipsis;
|
||||
}
|
||||
|
||||
.link {
|
||||
display: block;
|
||||
@include _.text-ellipsis;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -63,7 +63,7 @@ const PermissionsTable = ({
|
|||
title: t('permissions.description_column'),
|
||||
dataIndex: 'description',
|
||||
colSpan: isApiColumnVisible ? 5 : 9,
|
||||
render: ({ description }) => description,
|
||||
render: ({ description }) => <div className={styles.description}>{description}</div>,
|
||||
};
|
||||
|
||||
const apiColumn: Column<ScopeResponse> = {
|
||||
|
@ -71,7 +71,10 @@ const PermissionsTable = ({
|
|||
dataIndex: 'resource',
|
||||
colSpan: 5,
|
||||
render: ({ resource }) => (
|
||||
<TextLink to={`/api-resources/${resource.id}/${ApiResourceDetailsTabs.Settings}`}>
|
||||
<TextLink
|
||||
className={styles.link}
|
||||
to={`/api-resources/${resource.id}/${ApiResourceDetailsTabs.Settings}`}
|
||||
>
|
||||
{resource.name}
|
||||
</TextLink>
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue