Skip to content

Commit

Permalink
feat: optimize article item without title
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Jun 10, 2024
1 parent e4d4699 commit d391f32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/src/components/entry-column/article-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export function ArticleItem({ entryId, entryPreview }: UniversalItemProps) {
.humanize()}
</span>
</div>
<div className={cn("relative my-0.5 break-words font-medium", !!entry.collections && "pr-4")}>
{entry.entries.title}
<div className={cn("relative my-0.5 break-words", !!entry.collections && "pr-4", entry.entries.title ? "font-medium" : "text-[13px]")}>
{entry.entries.title || entry.entries.description}
{!!entry.collections && (
<i className="i-mingcute-star-fill absolute right-0 top-0.5 text-orange-400" />
)}
Expand Down

0 comments on commit d391f32

Please sign in to comment.