A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix item sizes on large tablets
ammarahm-ed0f3528c3e29e
diff --git a/apps/mobile/src/components/Properties/colortags.js b/apps/mobile/src/components/Properties/colortags.jsindex 19fbd651f..fd81976ce 100644--- a/apps/mobile/src/components/Properties/colortags.js+++ b/apps/mobile/src/components/Properties/colortags.js@@ -50,8 +50,8 @@ export const ColorTags = ({item, close}) => {key={color.value}onPress={() => changeColor(color)}customStyle={{- width: DDS.isTab ? width / 9 : dWidth / 9,- height: DDS.isTab ? width / 9 : dWidth / 9,+ width: DDS.isTab ? width / 10 : dWidth / 9,+ height: DDS.isTab ? width / 10 : dWidth / 9,borderRadius: 100,justifyContent: 'center',alignItems: 'center'diff --git a/apps/mobile/src/components/Properties/index.js b/apps/mobile/src/components/Properties/index.jsindex 9f645de3f..6b410b868 100644--- a/apps/mobile/src/components/Properties/index.js+++ b/apps/mobile/src/components/Properties/index.js@@ -673,7 +673,10 @@ export const Properties = ({];let width = dimensions.width > 600 ? 600 : 500;- let columnItemWidth = DDS.isTab ? (width - 24) / 5 : (w - 24) / 5;+ let columnItemsCount = DDS.isLargeTablet() ? 7 : 5;+ let columnItemWidth = DDS.isTab+ ? (width - 24) / columnItemsCount+ : (w - 24) / columnItemsCount;const _renderRowItem = rowItem => (<View@@ -700,7 +703,7 @@ export const Properties = ({}}><Iconname={rowItem.icon}- size={DDS.isTab ? SIZE.xl : SIZE.lg}+ size={DDS.isTab ? SIZE.xxl : SIZE.lg}color={rowItem.on? colors.accent@@ -835,7 +838,9 @@ export const Properties = ({i => rowItems.indexOf(i.name) > -1 && !i.hidden)}keyExtractor={item => item.title}- numColumns={rowItems.length < 5 ? rowItems.length : 5}+ numColumns={+ rowItems.length < 5 ? rowItems.length : columnItemsCount+ }style={{marginTop: note.type !== 'note' ? 10 : 0,paddingTop: 10