mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-27 04:43:12 +03:00
Fixed viewport width bug in AdminX (#18681)
refs. https://github.com/TryGhost/Product/issues/3949 - the viewport was getting really wide because of the whitespace property of newsletter descriptions
This commit is contained in:
parent
a521c23cd3
commit
e8768f040c
@ -24,19 +24,19 @@ const NewsletterItem: React.FC<{newsletter: Newsletter}> = ({newsletter}) => {
|
||||
<TableCell onClick={showDetails}>
|
||||
<div className={`flex grow flex-col`}>
|
||||
<span className='font-medium'>{newsletter.name}</span>
|
||||
<span className='whitespace-nowrap text-xs text-grey-700'>{newsletter.description || 'No description'}</span>
|
||||
<span className='mt-0.5 text-xs leading-tight text-grey-700'>{newsletter.description || 'No description'}</span>
|
||||
</div>
|
||||
</TableCell>
|
||||
<TableCell className='hidden md:!visible md:!table-cell' onClick={showDetails}>
|
||||
<div className={`flex grow flex-col`}>
|
||||
<span>{numberWithCommas(newsletter.count?.active_members || 0) }</span>
|
||||
<span className='whitespace-nowrap text-xs text-grey-700'>Subscribers</span>
|
||||
<span className='mt-0.5 whitespace-nowrap text-xs leading-tight text-grey-700'>Subscribers</span>
|
||||
</div>
|
||||
</TableCell>
|
||||
<TableCell className='hidden md:!visible md:!table-cell' onClick={showDetails}>
|
||||
<div className={`flex grow flex-col`}>
|
||||
<span>{numberWithCommas(newsletter.count?.posts || 0)}</span>
|
||||
<span className='whitespace-nowrap text-xs text-grey-700'>Delivered</span>
|
||||
<span className='mt-0.5 whitespace-nowrap text-xs leading-tight text-grey-700'>Delivered</span>
|
||||
</div>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
|
Loading…
Reference in New Issue
Block a user