Skip to content

Commit

Permalink
feat(ui): Added link to start page in argo logo (#21461)
Browse files Browse the repository at this point in the history
Signed-off-by: Surajyadav <[email protected]>
  • Loading branch information
surajyadav1108 authored Jan 14, 2025
1 parent d23e6ac commit 7296201
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ui/src/app/sidebar/sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,12 @@ $deselected-text: #818d94;
margin-left: -7px;

&__character {
cursor: pointer;
width: 42px;
}

&__text-logo {
cursor: pointer;
height: 2em;
filter: invert(100%);
}
Expand Down
10 changes: 8 additions & 2 deletions ui/src/app/sidebar/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,19 @@ export const Sidebar = (props: SidebarProps) => {
</div>
{!props.pref.hideSidebar && (
<div className='sidebar__logo-container'>
<img src='assets/images/argologo.svg' alt='Argo' className='sidebar__logo__text-logo' />
<img
onClick={() => context.history.push('/')}
title={'Go to start page'}
src='assets/images/argologo.svg'
alt='Argo'
className='sidebar__logo__text-logo'
/>
<div className='sidebar__version' onClick={props.onVersionClick}>
{loading ? 'Loading...' : error?.state ? 'Unknown' : version?.Version || 'Unknown'}
</div>
</div>
)}
<img src='assets/images/logo.png' alt='Argo' className='sidebar__logo__character' />{' '}
<img onClick={() => context.history.push('/')} title={'Go to start page'} src='assets/images/logo.png' alt='Argo' className='sidebar__logo__character' />{' '}
</div>

{(props.navItems || []).map(item => (
Expand Down

0 comments on commit 7296201

Please sign in to comment.