feat: collected status
This commit is contained in:
@@ -16,7 +16,7 @@ export function ArticleItem({ entryId, entryPreview }: UniversalItemProps) {
|
||||
return (
|
||||
<div className="flex px-2 py-3">
|
||||
<FeedIcon feed={entry.feeds} />
|
||||
<div className="-mt-0.5 line-clamp-5 flex-1 text-sm leading-tight">
|
||||
<div className="-mt-0.5 line-clamp-4 flex-1 text-sm leading-tight">
|
||||
<div className={cn("flex gap-1 text-[10px] font-bold", entry.read ? "text-zinc-400" : "text-zinc-500")}>
|
||||
<span className="truncate">{entry.feeds.title}</span>
|
||||
<span>·</span>
|
||||
@@ -29,8 +29,11 @@ export function ArticleItem({ entryId, entryPreview }: UniversalItemProps) {
|
||||
.humanize()}
|
||||
</span>
|
||||
</div>
|
||||
<div className="my-0.5 break-words font-medium">
|
||||
<div className={cn("relative my-0.5 break-words font-medium", !!entry.collections && "pr-4")}>
|
||||
{entry.entries.title}
|
||||
{!!entry.collections && (
|
||||
<i className="i-mingcute-star-fill absolute right-0 top-0.5 text-orange-400" />
|
||||
)}
|
||||
</div>
|
||||
<div className={cn("text-[13px]", entry.read ? "text-zinc-400" : "text-zinc-500")}>
|
||||
{entry.entries.description}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { FeedIcon } from "@renderer/components/feed-icon"
|
||||
import dayjs from "@renderer/lib/dayjs"
|
||||
import { cn } from "@renderer/lib/utils"
|
||||
import { useEntry } from "@renderer/store/entry"
|
||||
|
||||
import { ReactVirtuosoItemPlaceholder } from "../ui/placeholder"
|
||||
@@ -24,7 +25,12 @@ export function NotificationItem({ entryId, entryPreview }: UniversalItemProps)
|
||||
.humanize()}
|
||||
</span>
|
||||
</div>
|
||||
<div className="my-0.5">{entry.entries.title}</div>
|
||||
<div className={cn("relative my-0.5", !!entry.collections && "pr-4")}>
|
||||
{entry.entries.title}
|
||||
{!!entry.collections && (
|
||||
<i className="i-mingcute-star-fill absolute right-0 top-0.5 text-orange-400" />
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
@@ -2,6 +2,7 @@ import { FeedIcon } from "@renderer/components/feed-icon"
|
||||
import { SwipeImages } from "@renderer/components/swipe-images"
|
||||
import { ReactVirtuosoItemPlaceholder } from "@renderer/components/ui/placeholder"
|
||||
import dayjs from "@renderer/lib/dayjs"
|
||||
import { cn } from "@renderer/lib/utils"
|
||||
import { useEntry } from "@renderer/store/entry"
|
||||
|
||||
import type { UniversalItemProps } from "./types"
|
||||
@@ -21,7 +22,12 @@ export function PictureItem({ entryId, entryPreview }: UniversalItemProps) {
|
||||
/>
|
||||
</div>
|
||||
<div className="flex-1 px-2 pb-3 pt-1 text-sm">
|
||||
<div className="mb-0.5 mt-1 truncate font-medium">{entry.entries.title}</div>
|
||||
<div className={cn("relative mb-0.5 mt-1 truncate font-medium", !!entry.collections && "pr-4")}>
|
||||
{entry.entries.title}
|
||||
{!!entry.collections && (
|
||||
<i className="i-mingcute-star-fill absolute right-0 top-0.5 text-orange-400" />
|
||||
)}
|
||||
</div>
|
||||
<div className="flex items-center gap-1 truncate text-[13px]">
|
||||
<FeedIcon
|
||||
className="mr-0.5 inline-block size-[18px]"
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { FeedIcon } from "@renderer/components/feed-icon"
|
||||
import { Image } from "@renderer/components/ui/image"
|
||||
import dayjs from "@renderer/lib/dayjs"
|
||||
import { cn } from "@renderer/lib/utils"
|
||||
import { useEntry } from "@renderer/store/entry"
|
||||
|
||||
import { ReactVirtuosoItemPlaceholder } from "../ui/placeholder"
|
||||
@@ -28,7 +29,12 @@ export function SocialMediaItem({ entryId, entryPreview }: UniversalItemProps) {
|
||||
.humanize()}
|
||||
</span>
|
||||
</div>
|
||||
<div className="mt-0.5">{entry.entries.description}</div>
|
||||
<div className={cn("relative mt-0.5", !!entry.collections && "pr-4")}>
|
||||
{entry.entries.description}
|
||||
{!!entry.collections && (
|
||||
<i className="i-mingcute-star-fill absolute right-0 top-0.5 text-orange-400" />
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
<div className="mt-1 flex gap-2 overflow-x-auto">
|
||||
{entry.entries.images?.map((image) => (
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { FeedIcon } from "@renderer/components/feed-icon"
|
||||
import { Image } from "@renderer/components/ui/image"
|
||||
import dayjs from "@renderer/lib/dayjs"
|
||||
import { cn } from "@renderer/lib/utils"
|
||||
import { useEntry } from "@renderer/store/entry"
|
||||
|
||||
import { ReactVirtuosoItemPlaceholder } from "../ui/placeholder"
|
||||
@@ -26,7 +27,12 @@ export function VideoItem({ entryId, entryPreview }: UniversalItemProps) {
|
||||
/>
|
||||
</div>
|
||||
<div className="flex-1 px-2 pb-3 pt-1 text-sm">
|
||||
<div className="mb-0.5 mt-1 truncate font-medium">{entry.entries.title}</div>
|
||||
<div className={cn("relative mb-0.5 mt-1 truncate font-medium", !!entry.collections && "pr-4")}>
|
||||
{entry.entries.title}
|
||||
{!!entry.collections && (
|
||||
<i className="i-mingcute-star-fill absolute right-0 top-0.5 text-orange-400" />
|
||||
)}
|
||||
</div>
|
||||
<div className="flex items-center gap-1 truncate text-xs">
|
||||
<FeedIcon
|
||||
className="mr-0.5 inline-block size-3"
|
||||
|
||||
Reference in New Issue
Block a user