admin(ui): fix descriptions overflowing vertically
This commit is contained in:
parent
1800800308
commit
52b2463281
28 changed files with 107 additions and 85 deletions
|
@ -157,7 +157,7 @@ const LocationEditContainer = () => {
|
|||
return (
|
||||
<AdminContentBlock title={'Location - ' + location.short}>
|
||||
<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`}>{location.short}</h2>
|
||||
{
|
||||
(location.long || '').length < 1 ?
|
||||
|
@ -165,7 +165,7 @@ const LocationEditContainer = () => {
|
|||
<span css={tw`italic`}>No long name</span>
|
||||
</p>
|
||||
:
|
||||
<p css={tw`text-base text-neutral-400`}>{location.long}</p>
|
||||
<p css={tw`text-base text-neutral-400 whitespace-nowrap overflow-ellipsis overflow-hidden`}>{location.long}</p>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -63,12 +63,14 @@ const LocationsContainer = () => {
|
|||
return (
|
||||
<AdminContentBlock title={'Locations'}>
|
||||
<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`}>Locations</h2>
|
||||
<p css={tw`text-base text-neutral-400`}>All locations that nodes can be assigned to for easier categorization.</p>
|
||||
<p css={tw`text-base text-neutral-400 whitespace-nowrap overflow-ellipsis overflow-hidden`}>All locations that nodes can be assigned to for easier categorization.</p>
|
||||
</div>
|
||||
|
||||
<NewLocationButton/>
|
||||
<div css={tw`flex ml-auto pl-4`}>
|
||||
<NewLocationButton/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<FlashMessageRender byKey={'locations'} css={tw`mb-4`}/>
|
||||
|
|
|
@ -103,7 +103,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 Location
|
||||
</Button>
|
||||
</>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue