Skip to content

Commit

Permalink
Add logos to navbar and dashboard
Browse files Browse the repository at this point in the history
This update shows the organisation or owner logo in kanban board navbar
and repositories on dashboard.

Closes #100
  • Loading branch information
123vivekr committed Sep 2, 2018
1 parent 0d5a3b8 commit 4e31f9d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/app/nav.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ class AppNav extends Component {
<span className='repo-owner'>{repoOwner}</span>
{'/'}
{repoNameItems}
<img className='avatar-image' src={'https://github.com/' + repoOwner + '.png'} alt='repo-owner'/>
</li>
);
}
Expand Down
1 change: 1 addition & 0 deletions src/components/dashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ class RepoGroup extends Component {
}
const header = (
<span className='org-header'>
<img className='org-logo' src={'https://github.com/' + repoOwner + '.png'} alt='repo-owner'/>
{orgIcon}
{' '}
{repoOwner}
Expand Down
5 changes: 4 additions & 1 deletion style/app.less
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ body { background-color: #ddd; }

.badge { margin-right: .3rem; }

.avatar-image {
.avatar-image, .org-logo {
display: inline-block;
overflow: hidden;
line-height: 1;
Expand All @@ -64,6 +64,9 @@ body { background-color: #ddd; }
height: 2.5rem;
border-radius: 1.25rem;
}
.org-logo {
margin-right: 5px;
}

.bottombar-nav { opacity: .9; }

Expand Down

0 comments on commit 4e31f9d

Please sign in to comment.