Skip to content

Commit

Permalink
fix graphical bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
daiyam committed Sep 30, 2018
1 parent 2ccd00a commit d365aaf
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 d365aaf

Please sign in to comment.