Skip to content

Commit

Permalink
style: format
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed May 30, 2024
1 parent e2a96bf commit fdd7b77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/renderer/src/components/entry-column/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Tabs, TabsList, TabsTrigger } from "@renderer/components/ui/tabs"
import { gridMode } from "@renderer/lib/constants"
import { buildStorageNS } from "@renderer/lib/ns"
import { cn } from "@renderer/lib/utils"
import { apiClient } from "@renderer/queries/api-fetch"
Expand All @@ -23,7 +24,6 @@ import { PictureItem } from "./picture-item"
import { SocialMediaItem } from "./social-media-item"
import type { FilterTab, UniversalItemProps } from "./types"
import { VideoItem } from "./video-item"
import { gridMode } from "@renderer/lib/constants"

const filterTabAtom = atomWithStorage<FilterTab>(
buildStorageNS("entry-tab"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ export function SocialMediaItem({ entryId, entryPreview }: UniversalItemProps) {
// NOTE: prevent 0 height element, react virtuoso will not stop render any more
if (!entry) return <ReactVirtuosoItemPlaceholder />
return (
<div className="mb-5 flex px-2 py-3 w-full">
<div className="mb-5 flex w-full px-2 py-3">
<FeedIcon feed={entry.feeds} />
<div className="flex-1 min-w-0">
<div className="min-w-0 flex-1">
<div className="-mt-0.5 line-clamp-5 flex-1 text-sm">
<div className="space-x-1">
<span className="font-medium">{entry.entries.author}</span>
Expand Down

0 comments on commit fdd7b77

Please sign in to comment.