mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
Merge pull request #2444 from daiyam/snippet-list
fix graphical bugs in snippet list
This commit is contained in:
@@ -18,6 +18,9 @@ body
|
|||||||
::-webkit-scrollbar
|
::-webkit-scrollbar
|
||||||
width 12px
|
width 12px
|
||||||
|
|
||||||
|
::-webkit-scrollbar-corner
|
||||||
|
background-color: transparent;
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb
|
::-webkit-scrollbar-thumb
|
||||||
background-color rgba(0, 0, 0, 0.15)
|
background-color rgba(0, 0, 0, 0.15)
|
||||||
|
|
||||||
|
|||||||
@@ -55,7 +55,11 @@ class SnippetList extends React.Component {
|
|||||||
|
|
||||||
defineSnippetStyleName (snippet) {
|
defineSnippetStyleName (snippet) {
|
||||||
const { currentSnippet } = this.props
|
const { currentSnippet } = this.props
|
||||||
if (currentSnippet == null) return
|
|
||||||
|
if (currentSnippet == null) {
|
||||||
|
return 'snippet-item'
|
||||||
|
}
|
||||||
|
|
||||||
if (currentSnippet.id === snippet.id) {
|
if (currentSnippet.id === snippet.id) {
|
||||||
return 'snippet-item-selected'
|
return 'snippet-item-selected'
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user