Skip to content

🎧 Your Personal Streaming Service

Limit share size while handling theme properly (#2171)

Kendall Garner8b93962faddf
diff --git a/ui/src/SharePlayer.js b/ui/src/SharePlayer.js
index ca26940cb..9410fbc23 100644
--- a/ui/src/SharePlayer.js
+++ b/ui/src/SharePlayer.js
@@ -10,9 +10,14 @@ const useStyle = makeStyles({
pointerEvents: (props) => props.single && 'none',
opacity: (props) => props.single && 0.65,
},
- '& .react-jinke-music-player-mobile': {
- maxWidth: 768,
- margin: 'auto',
+ '@media (min-width: 768px)': {
+ '& .react-jinke-music-player-mobile > div': {
+ width: 768,
+ margin: 'auto',
+ },
+ '& .react-jinke-music-player-mobile-cover': {
+ width: 'auto !important',
+ },
},
},
})