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
web: fix attachments ui in properties
Abdullah Atta0ee8e738e59f
diff --git a/apps/web/src/components/attachment/index.tsx b/apps/web/src/components/attachment/index.tsxindex 9dddc6123..8d2e52c97 100644--- a/apps/web/src/components/attachment/index.tsx+++ b/apps/web/src/components/attachment/index.tsx@@ -156,8 +156,7 @@ export function Attachment({<td><Flexsx={{- alignItems: "center",- maxWidth: compact ? 180 : "95%"+ alignItems: "center"}}>{status ? (diff --git a/apps/web/src/components/properties/index.tsx b/apps/web/src/components/properties/index.tsxindex bd7d707e3..764ab910c 100644--- a/apps/web/src/components/properties/index.tsx+++ b/apps/web/src/components/properties/index.tsx@@ -659,6 +659,7 @@ function Attachments({ noteId }: { noteId: string }) {estimatedSize={30}getItemKey={(index) => result.value.key(index)}items={result.value.placeholders}+ style={{ tableLayout: "fixed", width: "100%" }}header={<tr><th style={{ width: "75%" }} />diff --git a/packages/common/src/utils/file.ts b/packages/common/src/utils/file.tsindex 29103471b..4dcb8fac4 100644--- a/packages/common/src/utils/file.ts+++ b/packages/common/src/utils/file.ts@@ -22,7 +22,7 @@ export function formatBytes(bytes: number, decimals = 2) {const k = 1024;const dm = decimals < 0 ? 0 : decimals;- const sizes = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];+ const sizes = ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];const i = Math.floor(Math.log(bytes) / Math.log(k));return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + " " + sizes[i];