Skip to content

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

show images in file attachments

ammarahm-ede9a6ed4597c3
diff --git a/apps/mobile/src/components/ActionSheetComponent/index.js b/apps/mobile/src/components/ActionSheetComponent/index.js
index 88a4a1725..55dd83dc1 100644
--- a/apps/mobile/src/components/ActionSheetComponent/index.js
+++ b/apps/mobile/src/components/ActionSheetComponent/index.js
@@ -691,7 +691,7 @@ export const ActionSheetComponent = ({
/>
</PressableButton>
- <Paragraph size={SIZE.sm - 1.5} style={{textAlign: 'center'}}>
+ <Paragraph size={SIZE.xs + 2} style={{textAlign: 'center'}}>
{rowItem.title}
</Paragraph>
</View>
diff --git a/apps/mobile/src/components/AttachmentDialog/index.js b/apps/mobile/src/components/AttachmentDialog/index.js
index 36cefc17c..3b11314e8 100644
--- a/apps/mobile/src/components/AttachmentDialog/index.js
+++ b/apps/mobile/src/components/AttachmentDialog/index.js
@@ -41,7 +41,7 @@ export const AttachmentDialog = () => {
const open = item => {
setNote(item);
setVisible(true);
- let _attachments = db.attachments.ofNote(item.id, "files");
+ let _attachments = db.attachments.ofNote(item.id, "all");
setAttachments(_attachments);
};
@@ -225,6 +225,7 @@ export const Attachment = ({attachment, encryption}) => {
color={colors.pri}>
{attachment.metadata.filename}
</Paragraph>
+
<Paragraph color={colors.icon} size={SIZE.xs}>
{formatBytes(attachment.length)}{' '}
@@ -232,6 +233,7 @@ export const Attachment = ({attachment, encryption}) => {
? '(' + currentProgress.type + 'ing - tap to cancel)'
: ''}
</Paragraph>
+
</View>
</View>
diff --git a/apps/mobile/src/utils/filesystem.js b/apps/mobile/src/utils/filesystem.js
index 4c453d9f9..df75e2648 100644
--- a/apps/mobile/src/utils/filesystem.js
+++ b/apps/mobile/src/utils/filesystem.js
@@ -251,9 +251,9 @@ async function downloadAttachment(hash, global = true) {
presentSheet({
title: `File downloaded`,
- paragraph: `${attachment.metadata.filename} is saved to ${
+ paragraph: `${attachment.metadata.filename} saved to ${
Platform.OS === 'android'
- ? 'the selected path'
+ ? 'selected path'
: 'File Manager/Notesnook/downloads'
}`,
noProgress: true,