Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Add some extra padding
Browse files Browse the repository at this point in the history
In case the file names get really long.
  • Loading branch information
simurai committed Feb 16, 2018
1 parent d55c052 commit a493b08
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/fuzzy-finder-view.js
Expand Up @@ -370,6 +370,7 @@ class FuzzyFinderItem {
this.element.appendChild(this.secondaryLine)

if (ownerGitHubUsername) {
this.element.classList.add('has-avatar');
const avatarElement = document.createElement('img')
avatarElement.className = 'FuzzyFinderResult-avatar'
avatarElement.src = `https://avatars.githubusercontent.com/${ownerGitHubUsername}?size=56`
Expand Down
9 changes: 7 additions & 2 deletions styles/fuzzy-finder.less
Expand Up @@ -9,9 +9,14 @@
.FuzzyFinderResult {
position: relative;

&-avatar {
@size: 28px;
@size: 28px;

&.has-avatar {
// add some extra space for the avatar
padding-right: @size + (@component-padding * 2) !important;
}

&-avatar {
position: absolute !important;
border-radius: @size;
width: @size;
Expand Down

0 comments on commit a493b08

Please sign in to comment.