Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix items in carousel are not centerd on tablet

ammarahm-ed50982df544db
diff --git a/apps/mobile/src/components/Premium/PremiumDialog.js b/apps/mobile/src/components/Premium/PremiumDialog.js
index 436a4e8ca..c39cf13a2 100644
--- a/apps/mobile/src/components/Premium/PremiumDialog.js
+++ b/apps/mobile/src/components/Premium/PremiumDialog.js
@@ -168,8 +168,8 @@ class PremiumDialog extends React.Component {
}}>
<Carousel
data={this.features}
- itemWidth={dWidth}
- sliderWidth={dWidth}
+ itemWidth={DDS.isTab ? 475 : dWidth}
+ sliderWidth={DDS.isTab ? 475 : dWidth}
autoplay
loop
autoplayInterval={5000}
@@ -180,12 +180,13 @@ class PremiumDialog extends React.Component {
style={{
paddingVertical: 5,
marginBottom: 10,
+ width:"100%",
}}>
<View
style={{
- flexWrap: 'wrap',
width: '95%',
alignItems: 'center',
+ alignSelf:'center'
}}>
<SvgXml
xml={item.icon(colors.accent)}
@@ -211,6 +212,7 @@ class PremiumDialog extends React.Component {
fontWeight: 'normal',
textAlign: 'center',
alignSelf: 'center',
+ maxWidth: "80%"
}}>
{item.description}
</Paragraph>