mirror of
https://github.com/argoproj/argo-cd
synced 2026-05-24 09:50:08 +00:00
fix: Summary legend overflow view (#4523)
Signed-off-by: Keith Chong <kykchong@redhat.com>
This commit is contained in:
parent
3ac0bc36d4
commit
9f2eab665b
1 changed files with 17 additions and 13 deletions
|
|
@ -60,7 +60,7 @@ export const ApplicationsSummary = ({applications}: {applications: models.Applic
|
|||
return (
|
||||
<div className='white-box applications-list__summary'>
|
||||
<div className='row'>
|
||||
<div className='columns large-4 small-12'>
|
||||
<div className='columns large-3 small-12'>
|
||||
<div className='white-box__details'>
|
||||
<p className='row'>SUMMARY</p>
|
||||
{attributes.map(attr => (
|
||||
|
|
@ -75,18 +75,22 @@ export const ApplicationsSummary = ({applications}: {applications: models.Applic
|
|||
</div>
|
||||
{charts.map(chart => (
|
||||
<React.Fragment key={chart.title}>
|
||||
<div className='columns large-3 small-4'>
|
||||
<h4 style={{textAlign: 'center'}}>{chart.title}</h4>
|
||||
<PieChart data={chart.data} />
|
||||
</div>
|
||||
<div className='columns large-1 small-2'>
|
||||
<ul>
|
||||
{Array.from(chart.legend.keys()).map(key => (
|
||||
<li style={{color: chart.legend.get(key)}} key={key}>
|
||||
{key}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
<div className='columns large-4 small-12'>
|
||||
<div className='row'>
|
||||
<div className='columns large-10 small-6'>
|
||||
<h4 style={{textAlign: 'center'}}>{chart.title}</h4>
|
||||
<PieChart data={chart.data} />
|
||||
</div>
|
||||
<div className='columns large-1 small-1'>
|
||||
<ul>
|
||||
{Array.from(chart.legend.keys()).map(key => (
|
||||
<li style={{color: chart.legend.get(key)}} key={key}>
|
||||
{key}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</React.Fragment>
|
||||
))}
|
||||
|
|
|
|||
Loading…
Reference in a new issue