admin(ui): fix descriptions overflowing vertically
This commit is contained in:
parent
1800800308
commit
52b2463281
28 changed files with 107 additions and 85 deletions
|
@ -102,7 +102,7 @@ export default () => {
|
|||
}
|
||||
</Formik>
|
||||
|
||||
<Button type={'button'} size={'large'} css={tw`h-10 ml-auto px-4 py-0`} onClick={() => setVisible(true)}>
|
||||
<Button type={'button'} size={'large'} css={tw`h-10 px-4 py-0 whitespace-nowrap`} onClick={() => setVisible(true)}>
|
||||
New Role
|
||||
</Button>
|
||||
</>
|
||||
|
|
|
@ -58,7 +58,7 @@ const RoleEditContainer = () => {
|
|||
return (
|
||||
<AdminContentBlock title={'Role - ' + role.name}>
|
||||
<div css={tw`w-full flex flex-row items-center mb-8`}>
|
||||
<div css={tw`flex flex-col`}>
|
||||
<div css={tw`flex flex-col flex-shrink`} style={{ minWidth: '0' }}>
|
||||
<h2 css={tw`text-2xl text-neutral-50 font-header font-medium`}>{role.name}</h2>
|
||||
{
|
||||
(role.description || '').length < 1 ?
|
||||
|
@ -66,7 +66,7 @@ const RoleEditContainer = () => {
|
|||
<span css={tw`italic`}>No description</span>
|
||||
</p>
|
||||
:
|
||||
<p css={tw`text-base text-neutral-400`}>{role.description}</p>
|
||||
<p css={tw`text-base text-neutral-400 whitespace-nowrap overflow-ellipsis overflow-hidden`}>{role.description}</p>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -64,12 +64,14 @@ export default () => {
|
|||
return (
|
||||
<AdminContentBlock title={'Roles'}>
|
||||
<div css={tw`w-full flex flex-row items-center mb-8`}>
|
||||
<div css={tw`flex flex-col`}>
|
||||
<div css={tw`flex flex-col flex-shrink`} style={{ minWidth: '0' }}>
|
||||
<h2 css={tw`text-2xl text-neutral-50 font-header font-medium`}>Roles</h2>
|
||||
<p css={tw`text-base text-neutral-400`}>Soon™</p>
|
||||
<p css={tw`text-base text-neutral-400 whitespace-nowrap overflow-ellipsis overflow-hidden`}>Soon™</p>
|
||||
</div>
|
||||
|
||||
<NewRoleButton/>
|
||||
<div css={tw`flex ml-auto pl-4`}>
|
||||
<NewRoleButton/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<FlashMessageRender byKey={'roles'} css={tw`mb-4`}/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue