From 87044a747b47bd83249d61a45842c7f7b2eae56d Mon Sep 17 00:00:00 2001
From: soryu <soryu@soryu.co>
Date: Sun, 11 Jan 2026 05:52:14 +0000
Subject:  Contract system

---
 makima/frontend/src/components/files/FileDetail.tsx | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'makima/frontend/src/components/files/FileDetail.tsx')

diff --git a/makima/frontend/src/components/files/FileDetail.tsx b/makima/frontend/src/components/files/FileDetail.tsx
index 60458e9..a030c57 100644
--- a/makima/frontend/src/components/files/FileDetail.tsx
+++ b/makima/frontend/src/components/files/FileDetail.tsx
@@ -87,6 +87,8 @@ export function FileDetail({
         return element.title || `${element.chartType} chart`;
       case "image":
         return element.alt || element.caption || "Image";
+      case "markdown":
+        return element.content.slice(0, 50) + (element.content.length > 50 ? "..." : "");
       default:
         return "Element";
     }
-- 
cgit v1.2.3

