修复设置面板内容滚动问题

This commit is contained in:
lyswhut 2023-03-24 18:49:06 +08:00
parent c8e5be3a7f
commit cc9ae3e4f3
6 changed files with 14 additions and 8 deletions

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -55,8 +55,8 @@ const styles = createStyle({
flexShrink: 0, flexShrink: 0,
paddingLeft: '10%', paddingLeft: '10%',
paddingRight: '10%', paddingRight: '10%',
paddingTop: '6%', paddingTop: '8.6%',
paddingBottom: '6%', paddingBottom: '8.6%',
}, },
row: { row: {
flexDirection: 'row', flexDirection: 'row',

View File

@ -1,4 +1,5 @@
import React, { forwardRef, useImperativeHandle, useRef, useState } from 'react' import React, { forwardRef, useImperativeHandle, useRef, useState } from 'react'
import { ScrollView, View } from 'react-native'
import Popup, { type PopupType, type PopupProps } from '@/components/common/Popup' import Popup, { type PopupType, type PopupProps } from '@/components/common/Popup'
import { useI18n } from '@/lang' import { useI18n } from '@/lang'
@ -36,10 +37,14 @@ export default forwardRef<SettingPopupType, SettingPopupProps>((props, ref) => {
visible visible
? ( ? (
<Popup ref={popupRef} title={t('play_detail_setting_title')} {...props}> <Popup ref={popupRef} title={t('play_detail_setting_title')} {...props}>
<SettingVolume /> <ScrollView>
<SettingPlaybackRate /> <View onStartShouldSetResponder={() => true}>
<SettingLrcFontSize /> <SettingVolume />
<SettingLrcAlign /> <SettingPlaybackRate />
<SettingLrcFontSize />
<SettingLrcAlign />
</View>
</ScrollView>
</Popup> </Popup>
) )
: null : null

View File

@ -2,9 +2,10 @@ import { createStyle } from '@/utils/tools'
export default createStyle({ export default createStyle({
container: { container: {
paddingTop: 5,
paddingLeft: 15, paddingLeft: 15,
paddingRight: 15, paddingRight: 15,
marginBottom: 15, paddingBottom: 15,
alignItems: 'flex-start', alignItems: 'flex-start',
}, },
// title: { // title: {