fix: Correct summary card display condition in Note component

This commit is contained in:
KazooTTT
2025-02-14 15:44:38 +08:00
parent cd6388c0d6
commit 527e98e0d1

View File

@ -79,7 +79,7 @@ if (modifiedDate && modifiedDate.toDateString() === date.toDateString()) {
)} )}
> >
{ {
isPreview && note.data.description && note.data.description.trim().length > 0 && ( !isPreview && note.data.description && note.data.description.trim().length > 0 && (
<Card heading="摘要由llm生成" altText="摘要" class="my-4 w-full"> <Card heading="摘要由llm生成" altText="摘要" class="my-4 w-full">
<div class="text-muted-foreground ml-4">{note.data.description}</div> <div class="text-muted-foreground ml-4">{note.data.description}</div>
</Card> </Card>