Skip to content

🎧 Your Personal Streaming Service

Reorganize AudioTitle classes.

Deluan3cede28161dc
diff --git a/ui/src/audioplayer/Player.js b/ui/src/audioplayer/Player.js
index 14b0363ea..9615ded31 100644
--- a/ui/src/audioplayer/Player.js
+++ b/ui/src/audioplayer/Player.js
@@ -32,23 +32,21 @@ const useStyle = makeStyles(
audioTitle: {
textDecoration: 'none',
color: theme.palette.primary.dark,
- '&.songTitle': {
- fontWeight: 'bold',
- },
- '&.songInfo': {
- display: 'block',
+ },
+ songTitle: {
+ fontWeight: 'bold',
+ '&:hover + $qualityInfo': {
+ opacity: 1,
},
},
+ songInfo: {
+ display: 'block',
+ },
qualityInfo: {
marginTop: '-4px',
opacity: 0,
transition: 'all 500ms ease-out',
},
- audioName: {
- '&:hover + $qualityInfo': {
- opacity: 1,
- },
- },
player: {
display: (props) => (props.visible ? 'block' : 'none'),
'@media screen and (max-width:810px)': {
@@ -86,15 +84,15 @@ const AudioTitle = React.memo(({ audioInfo, isMobile }) => {
return (
<Link to={`/album/${audioInfo.albumId}/show`} className={className}>
- <span className={`${className} songTitle`}>
- <span className={classes.audioName}>{audioInfo.name}</span>
+ <span>
+ <span className={classes.songTitle}>{audioInfo.name}</span>
{isDesktop && (
<QualityInfo record={qi} className={classes.qualityInfo} />
)}
</span>
{!isMobile && (
<div className={classes.artistAlbum}>
- <span className={`${className} songInfo`}>
+ <span className={classes.songInfo}>
{`${audioInfo.singer} - ${audioInfo.album}`}
</span>
</div>
diff --git a/ui/src/themes/ligera.js b/ui/src/themes/ligera.js
index 80a6110c9..a7a9e64f0 100644
--- a/ui/src/themes/ligera.js
+++ b/ui/src/themes/ligera.js
@@ -319,13 +319,13 @@ export default {
audioTitle: {
color: '#000',
fontSize: '0.875rem',
- '&.songTitle': {
- fontWeight: 400,
- },
- '&.songInfo': {
- fontSize: '0.675rem',
- color: '#b3b3b3',
- },
+ },
+ songTitle: {
+ fontWeight: 400,
+ },
+ songInfo: {
+ fontSize: '0.675rem',
+ color: '#b3b3b3',
},
player: {},
},
diff --git a/ui/src/themes/spotify.js b/ui/src/themes/spotify.js
index 95a8cf636..c0501777d 100644
--- a/ui/src/themes/spotify.js
+++ b/ui/src/themes/spotify.js
@@ -241,13 +241,13 @@ export default {
audioTitle: {
color: '#fff',
fontSize: '0.875rem',
- '&.songTitle': {
- fontWeight: 400,
- },
- '&.songInfo': {
- fontSize: '0.675rem',
- color: '#b3b3b3',
- },
+ },
+ songTitle: {
+ fontWeight: 400,
+ },
+ songInfo: {
+ fontSize: '0.675rem',
+ color: '#b3b3b3',
},
player: {
border: '10px solid blue',