优化播放详情页竖屏布局适配

This commit is contained in:
lyswhut 2023-12-07 16:42:17 +08:00
parent 0cda246799
commit 84517f5c40
4 changed files with 6 additions and 3 deletions

View File

@ -61,6 +61,7 @@ const styles = createStyle({
flexShrink: 1, flexShrink: 1,
justifyContent: 'center', justifyContent: 'center',
alignItems: 'center', alignItems: 'center',
// backgroundColor: 'rgba(0,0,0,0.1)',
}, },
content: { content: {
// elevation: 3, // elevation: 3,

View File

@ -65,7 +65,7 @@ const styles = createStyle({
flexGrow: 1, flexGrow: 1,
flexShrink: 1, flexShrink: 1,
paddingHorizontal: '4%', paddingHorizontal: '4%',
paddingVertical: 6, paddingVertical: 12,
// backgroundColor: 'rgba(0, 0, 0, .1)', // backgroundColor: 'rgba(0, 0, 0, .1)',
}, },
cotrolBtn: { cotrolBtn: {

View File

@ -31,7 +31,9 @@ const styles = createStyle({
// paddingTop: progressContentPadding, // paddingTop: progressContentPadding,
// marginTop: -progressContentPadding, // marginTop: -progressContentPadding,
// backgroundColor: 'rgba(0, 0, 0, .1)', // backgroundColor: 'rgba(0, 0, 0, .1)',
padding: 15, paddingHorizontal: 15,
paddingBottom: 15,
paddingTop: 5,
// backgroundColor: AppColors.primary, // backgroundColor: AppColors.primary,
// backgroundColor: 'red', // backgroundColor: 'red',
flexDirection: 'column', flexDirection: 'column',

View File

@ -76,7 +76,7 @@ export default memo(({ componentId }: { componentId: string }) => {
<PagerView <PagerView
onPageSelected={onPageSelected} onPageSelected={onPageSelected}
// onPageScrollStateChanged={onPageScrollStateChanged} // onPageScrollStateChanged={onPageScrollStateChanged}
style={{ flexGrow: 0, flexShrink: 1, height: `${64 * global.lx.fontSize}%` }} style={{ flexGrow: 0, flexShrink: 1, height: '64%' }}
> >
<View collapsable={false}> <View collapsable={false}>
<Pic componentId={componentId} /> <Pic componentId={componentId} />