Skip to content

Commit

Permalink
fix: ui add tooltips on repository url links and names (argoproj#9868) (
Browse files Browse the repository at this point in the history
argoproj#10108)

* fix: ui add tooltips on repository url links and names (argoproj#9868)

Signed-off-by: XieYanke <xieyanke007@gmail.com>

* fix: yarn lint failure

Signed-off-by: XieYanke <xieyanke007@gmail.com>

Signed-off-by: XieYanke <xieyanke007@gmail.com>
  • Loading branch information
xieyanke authored and ashutosh16 committed Oct 7, 2022
1 parent f3e464b commit fbd91f7
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions ui/src/app/settings/components/repos-list/repos-list.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {AutocompleteField, DropDownMenu, FormField, FormSelect, HelpIcon, NotificationType, SlidingPanel} from 'argo-ui';
import {AutocompleteField, DropDownMenu, FormField, FormSelect, HelpIcon, NotificationType, SlidingPanel, Tooltip} from 'argo-ui';
import * as PropTypes from 'prop-types';
import * as React from 'react';
import {Form, FormValues, FormApi, Text, TextArea, FormErrors} from 'react-form';
Expand Down Expand Up @@ -266,9 +266,17 @@ export class ReposList extends React.Component<
<i className={'icon argo-icon-' + (repo.type || 'git')} />
</div>
<div className='columns small-1'>{repo.type || 'git'}</div>
<div className='columns small-2'>{repo.name}</div>
<div className='columns small-2'>
<Tooltip content={repo.name}>
<span>{repo.name}</span>
</Tooltip>
</div>
<div className='columns small-5'>
<Repo url={repo.repo} />
<Tooltip content={repo.repo}>
<span>
<Repo url={repo.repo} />
</span>
</Tooltip>
</div>
<div className='columns small-3'>
<ConnectionStateIcon state={repo.connectionState} /> {repo.connectionState.status}
Expand Down

0 comments on commit fbd91f7

Please sign in to comment.