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 {
|
||||
width: 306px;
|
||||
}
|
||||
|
||||
.createButton {
|
||||
margin-left: _.unit(2);
|
||||
}
|
||||
}
|
||||
|
||||
.name {
|
||||
|
@ -33,4 +37,8 @@
|
|||
display: block;
|
||||
@include _.text-ellipsis;
|
||||
}
|
||||
|
||||
.deleteColumn {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -94,7 +94,8 @@ function PermissionsTable({
|
|||
const deleteColumn: Column<ScopeResponse> = {
|
||||
title: null,
|
||||
dataIndex: 'delete',
|
||||
colSpan: 1,
|
||||
colSpan: 2,
|
||||
className: styles.deleteColumn,
|
||||
render: (scope) =>
|
||||
/**
|
||||
* 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 && (
|
||||
<Button
|
||||
title={createButtonTitle}
|
||||
className={styles.createButton}
|
||||
type="primary"
|
||||
size="large"
|
||||
icon={<Plus />}
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
min-width: min-content;
|
||||
}
|
||||
|
||||
.tableContainer {
|
||||
|
|
Loading…
Add table
Reference in a new issue