mirror of
https://github.com/ikun0014/lx-music-mobile.git
synced 2025-07-05 21:58:56 +08:00
限制图片大小
This commit is contained in:
parent
740c5ffd94
commit
1b6263bc19
@ -12,7 +12,8 @@ export default memo(({ componentId, animated }) => {
|
||||
return (playMusicInfo && playMusicInfo.musicInfo) || {}
|
||||
}, [playMusicInfo])
|
||||
|
||||
const imgWidth = getWindowSise().width * 0.5 * 0.42
|
||||
const { width: winWidth, height: winHeight } = getWindowSise()
|
||||
const imgWidth = Math.min(winWidth * 0.6 * 0.45, winHeight * 0.5)
|
||||
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
|
Loading…
x
Reference in New Issue
Block a user