Skip to content

Commit

Permalink
fix: acl layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Raubzeug committed Jul 3, 2024
1 parent 148fe59 commit e3d42a7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/containers/Tenant/Acl/Acl.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

.ydb-acl {
width: 100%;
&__owner-container {
padding-bottom: 25px;
}
&__result {
padding-bottom: 16px;
}
Expand Down
15 changes: 10 additions & 5 deletions src/containers/Tenant/Acl/Acl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,16 @@ export const Acl = ({path}: {path: string}) => {

return (
<div className={b()}>
<DefinitionList
items={ownerItem.concat(aclListItems)}
nameMaxWidth={200}
className={b('result')}
/>
{ownerItem.length && (
<DefinitionList
items={ownerItem}
nameMaxWidth={200}
className={b('owner-container')}
/>
)}
{aclListItems.length && (
<DefinitionList items={aclListItems} nameMaxWidth={200} className={b('result')} />
)}
</div>
);
};

0 comments on commit e3d42a7

Please sign in to comment.