Reorganize AudioTitle classes.
Should fix https://github.com/web-scrobbler/web-scrobbler/issues/2828
This commit is contained in:
@@ -32,23 +32,21 @@ const useStyle = makeStyles(
|
|||||||
audioTitle: {
|
audioTitle: {
|
||||||
textDecoration: 'none',
|
textDecoration: 'none',
|
||||||
color: theme.palette.primary.dark,
|
color: theme.palette.primary.dark,
|
||||||
'&.songTitle': {
|
},
|
||||||
|
songTitle: {
|
||||||
fontWeight: 'bold',
|
fontWeight: 'bold',
|
||||||
|
'&:hover + $qualityInfo': {
|
||||||
|
opacity: 1,
|
||||||
},
|
},
|
||||||
'&.songInfo': {
|
},
|
||||||
|
songInfo: {
|
||||||
display: 'block',
|
display: 'block',
|
||||||
},
|
},
|
||||||
},
|
|
||||||
qualityInfo: {
|
qualityInfo: {
|
||||||
marginTop: '-4px',
|
marginTop: '-4px',
|
||||||
opacity: 0,
|
opacity: 0,
|
||||||
transition: 'all 500ms ease-out',
|
transition: 'all 500ms ease-out',
|
||||||
},
|
},
|
||||||
audioName: {
|
|
||||||
'&:hover + $qualityInfo': {
|
|
||||||
opacity: 1,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
player: {
|
player: {
|
||||||
display: (props) => (props.visible ? 'block' : 'none'),
|
display: (props) => (props.visible ? 'block' : 'none'),
|
||||||
'@media screen and (max-width:810px)': {
|
'@media screen and (max-width:810px)': {
|
||||||
@@ -86,15 +84,15 @@ const AudioTitle = React.memo(({ audioInfo, isMobile }) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Link to={`/album/${audioInfo.albumId}/show`} className={className}>
|
<Link to={`/album/${audioInfo.albumId}/show`} className={className}>
|
||||||
<span className={`${className} songTitle`}>
|
<span>
|
||||||
<span className={classes.audioName}>{audioInfo.name}</span>
|
<span className={classes.songTitle}>{audioInfo.name}</span>
|
||||||
{isDesktop && (
|
{isDesktop && (
|
||||||
<QualityInfo record={qi} className={classes.qualityInfo} />
|
<QualityInfo record={qi} className={classes.qualityInfo} />
|
||||||
)}
|
)}
|
||||||
</span>
|
</span>
|
||||||
{!isMobile && (
|
{!isMobile && (
|
||||||
<div className={classes.artistAlbum}>
|
<div className={classes.artistAlbum}>
|
||||||
<span className={`${className} songInfo`}>
|
<span className={classes.songInfo}>
|
||||||
{`${audioInfo.singer} - ${audioInfo.album}`}
|
{`${audioInfo.singer} - ${audioInfo.album}`}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -319,14 +319,14 @@ export default {
|
|||||||
audioTitle: {
|
audioTitle: {
|
||||||
color: '#000',
|
color: '#000',
|
||||||
fontSize: '0.875rem',
|
fontSize: '0.875rem',
|
||||||
'&.songTitle': {
|
},
|
||||||
|
songTitle: {
|
||||||
fontWeight: 400,
|
fontWeight: 400,
|
||||||
},
|
},
|
||||||
'&.songInfo': {
|
songInfo: {
|
||||||
fontSize: '0.675rem',
|
fontSize: '0.675rem',
|
||||||
color: '#b3b3b3',
|
color: '#b3b3b3',
|
||||||
},
|
},
|
||||||
},
|
|
||||||
player: {},
|
player: {},
|
||||||
},
|
},
|
||||||
NDLogin: {
|
NDLogin: {
|
||||||
|
|||||||
@@ -241,14 +241,14 @@ export default {
|
|||||||
audioTitle: {
|
audioTitle: {
|
||||||
color: '#fff',
|
color: '#fff',
|
||||||
fontSize: '0.875rem',
|
fontSize: '0.875rem',
|
||||||
'&.songTitle': {
|
},
|
||||||
|
songTitle: {
|
||||||
fontWeight: 400,
|
fontWeight: 400,
|
||||||
},
|
},
|
||||||
'&.songInfo': {
|
songInfo: {
|
||||||
fontSize: '0.675rem',
|
fontSize: '0.675rem',
|
||||||
color: '#b3b3b3',
|
color: '#b3b3b3',
|
||||||
},
|
},
|
||||||
},
|
|
||||||
player: {
|
player: {
|
||||||
border: '10px solid blue',
|
border: '10px solid blue',
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user