add support for rendering ui on various devices

This commit is contained in:
Dawn1Ocean
2024-03-19 11:31:23 +08:00
parent f20a38af9b
commit 3c2b613d87
16 changed files with 64 additions and 55 deletions
+4 -4
View File
@@ -36,19 +36,19 @@ class Card extends Component {
style={{
display: 'flex',
alignItems: 'center',
marginBottom: 20,
marginBottom: '40rpx',
}}
>
<Image
src={iconsrc}
style={{
width: 24,
height: 24,
width: '48rpx',
height: '48rpx',
}}
/>
<View
style={{
marginLeft: 10,
marginLeft: '20rpx',
fontSize: '60rpx',
fontWeight: 'bold',
}}
+1 -1
View File
@@ -10,7 +10,7 @@ export default class TitleCard extends React.Component {
<View className='at-row at-row__align--center'>
<View className='at-col at-col-1 at-col--auto'>
<Image
style='width: 50px; height: 50px; margin-left: 15px;'
style='width: 100rpx; height: 100rpx; margin-left: 30rpx;'
src={logo}
mode='aspectFit'
/>
+2 -2
View File
@@ -20,7 +20,7 @@ class CardContent {
function mainPageCard(c: CardContent): JSX.Element {
return (
<View style={{ marginTop: 10, marginBottom: 20 }}>
<View style={{ marginTop: '20rpx', marginBottom: '40rpx' }}>
<AtCard note={c.note} extra={c.extra} title={c.title}>
{c.content()}
</AtCard>
@@ -106,7 +106,7 @@ export default class MainPage extends Component<{}, MainPageState> {
<View>
<TitleCard />
<View style={{ width: '94%', marginLeft: '3%' }}>
<View style={{ marginTop: 30 }}>
<View style={{ marginTop: '60rpx' }}>
{mainPageCard(this.state.dutyInfoCard)}
{mainPageCard(this.state.tipsInfoCard)}
<ExpandItem