mirror of
https://github.com/logto-io/logto.git
synced 2025-01-20 21:32:31 -05:00
style(console): update permission table style (#3709)
This commit is contained in:
parent
5ccce59c73
commit
ddde9c597e
3 changed files with 12 additions and 1 deletions
|
@ -13,6 +13,10 @@
|
||||||
.searchInput {
|
.searchInput {
|
||||||
width: 306px;
|
width: 306px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.createButton {
|
||||||
|
margin-left: _.unit(2);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.name {
|
.name {
|
||||||
|
@ -33,4 +37,8 @@
|
||||||
display: block;
|
display: block;
|
||||||
@include _.text-ellipsis;
|
@include _.text-ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.deleteColumn {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -94,7 +94,8 @@ function PermissionsTable({
|
||||||
const deleteColumn: Column<ScopeResponse> = {
|
const deleteColumn: Column<ScopeResponse> = {
|
||||||
title: null,
|
title: null,
|
||||||
dataIndex: 'delete',
|
dataIndex: 'delete',
|
||||||
colSpan: 1,
|
colSpan: 2,
|
||||||
|
className: styles.deleteColumn,
|
||||||
render: (scope) =>
|
render: (scope) =>
|
||||||
/**
|
/**
|
||||||
* When the table is read-only, hide the delete button rather than the whole column to keep the table column spaces.
|
* When the table is read-only, hide the delete button rather than the whole column to keep the table column spaces.
|
||||||
|
@ -143,6 +144,7 @@ function PermissionsTable({
|
||||||
{!isReadOnly && (
|
{!isReadOnly && (
|
||||||
<Button
|
<Button
|
||||||
title={createButtonTitle}
|
title={createButtonTitle}
|
||||||
|
className={styles.createButton}
|
||||||
type="primary"
|
type="primary"
|
||||||
size="large"
|
size="large"
|
||||||
icon={<Plus />}
|
icon={<Plus />}
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
min-width: min-content;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tableContainer {
|
.tableContainer {
|
||||||
|
|
Loading…
Add table
Reference in a new issue