mirror of
https://github.com/ikun0014/lx-music-mobile.git
synced 2025-07-03 19:02:08 +08:00
调整横屏下的播放详情页进度栏高度
This commit is contained in:
parent
920251e5ca
commit
9b43fb6387
@ -52,8 +52,8 @@ const Progress = ({ progress, bufferedProgress, duration }) => {
|
|||||||
|
|
||||||
const { width } = getWindowSise()
|
const { width } = getWindowSise()
|
||||||
const progressContentPadding = width * 0.0140625
|
const progressContentPadding = width * 0.0140625
|
||||||
const progressHeight = width * 0.0046875
|
const progressHeight = width * 0.005
|
||||||
const progressDotSize = progressHeight * 4
|
const progressDotSize = progressHeight * 3.8
|
||||||
const styles = StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
progress: {
|
progress: {
|
||||||
width: '100%',
|
width: '100%',
|
||||||
|
@ -20,7 +20,7 @@ const PlayTimeMax = memo(({ timeStr, size }) => {
|
|||||||
export default () => {
|
export default () => {
|
||||||
const { curTimeStr, maxTimeStr, progress, bufferedProgress, duration } = usePlayTime()
|
const { curTimeStr, maxTimeStr, progress, bufferedProgress, duration } = usePlayTime()
|
||||||
const { window } = useDimensions()
|
const { window } = useDimensions()
|
||||||
const size = useMemo(() => window.width * 0.4 * 0.4 * 0.14, [window.width])
|
const size = useMemo(() => window.width * 0.4 * 0.4 * 0.125, [window.width])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={styles.container} nativeID="player">
|
<View style={styles.container} nativeID="player">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user