0
Fork 0
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:
Xiao Yijun 2023-04-18 15:48:58 +08:00 committed by GitHub
parent 5ccce59c73
commit ddde9c597e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 1 deletions

View file

@ -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;
}
} }

View file

@ -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 />}

View file

@ -4,6 +4,7 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow: hidden; overflow: hidden;
min-width: min-content;
} }
.tableContainer { .tableContainer {