diff --git a/zettelkasten-front/src/pages/cards/ViewPage.tsx b/zettelkasten-front/src/pages/cards/ViewPage.tsx index 154111d..86eb16e 100644 --- a/zettelkasten-front/src/pages/cards/ViewPage.tsx +++ b/zettelkasten-front/src/pages/cards/ViewPage.tsx @@ -91,53 +91,61 @@ export function ViewPage({}: ViewPageProps) { }, [id, setRefreshTasks]); return ( -
+
{error && ( -
- //

Unauthorized

-
{error}
+
+
{error}
)} {viewingCard && ( -
-
+
+ {/* Header Section */} +
- - {viewingCard.card_id} - - - - {viewingCard.tags.length > 0 && - viewingCard.tags.map((tag) => ( - - #{tag.name} - - ))} +
+ + {viewingCard.card_id} + + : +

+ {viewingCard.title} +

+ {viewingCard.tags.length > 0 && ( +
+ {viewingCard.tags.map((tag) => ( + + #{tag.name} + + ))} +
+ )} +
-
-
-
-
+ {/* Card Body */} +
-
- {viewingCard.link && ( -
- {"Link: "} - -
- )} -
-
-
-
+ + {/* Link Section */} + {viewingCard.link && ( +
+ Link: + +
+ )} + + {/* Backlink and Options Section */} +
+
-
- Created At: - {viewingCard.created_at.toISOString()} -
- Updated At: - {viewingCard.updated_at.toISOString()} +
+
+ Created At: + {viewingCard.created_at.toISOString()} +
+
+ Updated At: + {viewingCard.updated_at.toISOString()} +
+ + {/* Parent Card Section */} {parentCard && ( -
+
-
    +
)} -
+ + {/* Tasks Section */} {viewingCard.tasks.length > 0 && ( -
+
- {viewingCard.tasks.map((task, index) => ( - {}} - /> - ))} -
+
+ {viewingCard.tasks.map((task, index) => ( + {}} + /> + ))} +
)} - + + {/* Tabbed Display */} +
+ +
)}