Skip to content

Commit

Permalink
fix: add tooltip for long title in list view ui (#9792)
Browse files Browse the repository at this point in the history
* fix: add tooltip for long title in list view ui

Signed-off-by: saumeya <saumeyakatyal@gmail.com>

* review comments

Signed-off-by: saumeya <saumeyakatyal@gmail.com>

Signed-off-by: saumeya <saumeyakatyal@gmail.com>
  • Loading branch information
saumeya committed Sep 27, 2022
1 parent b431d25 commit 7cb6dae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ export const ApplicationsTable = (props: {
<div className='row'>
<div className=' columns small-2' />
<div className='show-for-xxlarge columns small-4'>Name:</div>
<div className='columns small-12 xxlarge-6'>{app.metadata.name}</div>
<div className='columns small-12 xxlarge-6'>
<Tooltip content={app.metadata.name}>
<span>{app.metadata.name}</span>
</Tooltip>
</div>
</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,9 @@ export const ApplicationTiles = ({applications, syncApplication, refreshApplicat
: 'columns small-11'
}>
<i className={'icon argo-icon-' + (app.spec.source.chart != null ? 'helm' : 'git')} />
{AppUtils.appQualifiedName(app).length > 30 ? (
<Tooltip content={AppUtils.appInstanceName(app)}>
<span className='applications-list__title'>{AppUtils.appQualifiedName(app)}</span>
</Tooltip>
) : (
<Tooltip content={AppUtils.appInstanceName(app)}>
<span className='applications-list__title'>{AppUtils.appQualifiedName(app)}</span>
)}
</Tooltip>
</div>
<div
className={
Expand Down

0 comments on commit 7cb6dae

Please sign in to comment.