From 034073a5e1ed0cc7e2a4212d80a0bf45e4e0be67 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Fri, 19 Sep 2025 22:18:10 +0300 Subject: [PATCH] chore(react/type_widget): fix missing tbody --- .../src/widgets/ribbon/FilePropertiesTab.tsx | 98 ++++++++++--------- 1 file changed, 50 insertions(+), 48 deletions(-) diff --git a/apps/client/src/widgets/ribbon/FilePropertiesTab.tsx b/apps/client/src/widgets/ribbon/FilePropertiesTab.tsx index 4b42699d3..4777f4349 100644 --- a/apps/client/src/widgets/ribbon/FilePropertiesTab.tsx +++ b/apps/client/src/widgets/ribbon/FilePropertiesTab.tsx @@ -18,58 +18,60 @@ export default function FilePropertiesTab({ note }: { note?: FNote | null }) {
{note && ( - - - - - - - - - - - - + + + + + + + + + + + + + - - + - + + server.upload(`notes/${note.noteId}/file`, fileToUpload[0]).then((result) => { + if (result.uploaded) { + toast.showMessage(t("file_properties.upload_success")); + } else { + toast.showError(t("file_properties.upload_failed")); + } + }); + }} + /> + + + +
{t("file_properties.note_id")}:{note.noteId}{t("file_properties.original_file_name")}:{originalFileName ?? "?"}
{t("file_properties.file_type")}:{note.mime}{t("file_properties.file_size")}:{formatSize(blob?.contentLength ?? 0)}
{t("file_properties.note_id")}:{note.noteId}{t("file_properties.original_file_name")}:{originalFileName ?? "?"}
{t("file_properties.file_type")}:{note.mime}{t("file_properties.file_size")}:{formatSize(blob?.contentLength ?? 0)}
-
-
+
+
-
)}