Skip to content

Commit a75f8e5

Browse files
authored
Merge pull request #2444 from daiyam/snippet-list
fix graphical bugs in snippet list
2 parents 1821a5c + d365aaf commit a75f8e5

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

browser/main/global.styl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ body
1818
::-webkit-scrollbar
1919
width 12px
2020

21+
::-webkit-scrollbar-corner
22+
background-color: transparent;
23+
2124
::-webkit-scrollbar-thumb
2225
background-color rgba(0, 0, 0, 0.15)
2326

browser/main/modals/PreferencesModal/SnippetList.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ class SnippetList extends React.Component {
5555

5656
defineSnippetStyleName (snippet) {
5757
const { currentSnippet } = this.props
58-
if (currentSnippet == null) return
58+
59+
if (currentSnippet == null) {
60+
return 'snippet-item'
61+
}
62+
5963
if (currentSnippet.id === snippet.id) {
6064
return 'snippet-item-selected'
6165
} else {

0 commit comments

Comments
 (0)