-
-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: cannot custom progress bar background color
- Loading branch information
1 parent
0839a45
commit 9205b92
Showing
9 changed files
with
264 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
export const sliderBaseOptions = { | ||
min: 0, | ||
step: 0.01, | ||
trackStyle: { backgroundColor: "#31c27c" }, | ||
handleStyle: { backgroundColor: "#31c27c", border: "2px solid #fff" }, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/** | ||
* @version 4.13.1 | ||
* @version 4.14.0 | ||
* @name react-jinke-music-player | ||
* @description Maybe the best beautiful HTML5 responsive player component for react :) | ||
* @author Jinke.Li <[email protected]> | ||
|
@@ -1481,7 +1481,8 @@ export default class ReactJkMusicPlayer extends PureComponent { | |
0, | ||
Math.min(audioLists.length, this.props.defaultPlayIndex) | ||
); | ||
const playId = this.state.playId || audioLists[playIndex].id; | ||
const playId = | ||
this.state.playId || (audioLists[playIndex] && audioLists[playIndex].id); | ||
return playId; | ||
}; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,6 +130,8 @@ | |
overflow: hidden; | ||
.center(); | ||
|
||
.overwrite-progress-bar(); | ||
|
||
.img-content { | ||
width: 50px; | ||
height: 50px; | ||
|
Oops, something went wrong.