From fdd7b77162b6c590aa68d7c872e4f41744d59091 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Thu, 30 May 2024 23:40:19 +0800 Subject: [PATCH] style: format --- src/renderer/src/components/entry-column/index.tsx | 2 +- .../src/components/entry-column/social-media-item.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderer/src/components/entry-column/index.tsx b/src/renderer/src/components/entry-column/index.tsx index 528cf40569..4c7790ce6d 100644 --- a/src/renderer/src/components/entry-column/index.tsx +++ b/src/renderer/src/components/entry-column/index.tsx @@ -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" @@ -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( buildStorageNS("entry-tab"), diff --git a/src/renderer/src/components/entry-column/social-media-item.tsx b/src/renderer/src/components/entry-column/social-media-item.tsx index 9e0d9d6509..bc43fde3c2 100644 --- a/src/renderer/src/components/entry-column/social-media-item.tsx +++ b/src/renderer/src/components/entry-column/social-media-item.tsx @@ -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 return ( -
+
-
+
{entry.entries.author}