Skip to content

Commit

Permalink
Merge pull request #2444 from daiyam/snippet-list
Browse files Browse the repository at this point in the history
fix graphical bugs in snippet list
  • Loading branch information
Rokt33r authored Oct 11, 2018
2 parents 1821a5c + d365aaf commit a75f8e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions browser/main/global.styl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ body
::-webkit-scrollbar
width 12px

::-webkit-scrollbar-corner
background-color: transparent;

::-webkit-scrollbar-thumb
background-color rgba(0, 0, 0, 0.15)

Expand Down
6 changes: 5 additions & 1 deletion browser/main/modals/PreferencesModal/SnippetList.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ class SnippetList extends React.Component {

defineSnippetStyleName (snippet) {
const { currentSnippet } = this.props
if (currentSnippet == null) return

if (currentSnippet == null) {
return 'snippet-item'
}

if (currentSnippet.id === snippet.id) {
return 'snippet-item-selected'
} else {
Expand Down

0 comments on commit a75f8e5

Please sign in to comment.