fix(desktop): adjust layout and styling in SearchCard component (#3445)
This commit is contained in:
@@ -2,7 +2,6 @@ import { useMobile } from "@follow/components/hooks/useMobile.js"
|
||||
import { Button } from "@follow/components/ui/button/index.js"
|
||||
import { Card, CardContent, CardFooter, CardHeader } from "@follow/components/ui/card/index.jsx"
|
||||
import { RelativeTime } from "@follow/components/ui/datetime/index.js"
|
||||
import { Divider } from "@follow/components/ui/divider/Divider.js"
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
@@ -402,9 +401,8 @@ const SearchCard: FC<{
|
||||
})}
|
||||
</div>
|
||||
)}
|
||||
<Divider className="mb-0" />
|
||||
</CardContent>
|
||||
<CardFooter className="flex justify-between gap-4 border-t border-zinc-100/80 py-3 dark:border-zinc-800/80">
|
||||
<CardFooter className="mt-4 flex justify-between gap-4 border-t border-zinc-100/80 py-3 dark:border-zinc-800/80">
|
||||
<div className="flex items-center gap-3 text-sm text-zinc-500 dark:text-zinc-400">
|
||||
<div className="flex items-center gap-1.5">
|
||||
<i className="i-mgc-user-3-cute-re" />
|
||||
@@ -434,7 +432,7 @@ const SearchCard: FC<{
|
||||
<div className="flex items-center justify-between gap-2">
|
||||
<Button
|
||||
variant="ghost"
|
||||
buttonClassName="rounded-full px-4 py-2 text-sm font-medium text-zinc-500 transition-colors hover:bg-zinc-100 hover:text-zinc-900 dark:text-zinc-400 dark:hover:bg-zinc-800/80 dark:hover:text-white"
|
||||
buttonClassName="rounded-lg px-3 text-sm font-medium text-zinc-500 transition-colors hover:bg-zinc-100 hover:text-zinc-900 dark:text-zinc-400 dark:hover:bg-zinc-800/80 dark:hover:text-white"
|
||||
onClick={() => {
|
||||
if (!item.feed?.id) return
|
||||
window.open(UrlBuilder.shareFeed(item.feed.id, 0), "_blank")
|
||||
|
||||
@@ -160,6 +160,7 @@
|
||||
"feed.followsAndReads": "在 {{appName}} 上有 {{subscriptionCount}} 个{{subscriptionNoun}},{{readCount}} 次近期{{readNoun}}",
|
||||
"feed.read_one": "阅读",
|
||||
"feed.read_other": "阅读",
|
||||
"feed.updated_at": "更新于",
|
||||
"feed_claim_modal.choose_verification_method": "有三种认证方式,可任选其中一种进行认证。",
|
||||
"feed_claim_modal.claim_button": "认证",
|
||||
"feed_claim_modal.content_instructions": "复制以下内容,发布到需要认证的订阅源。",
|
||||
|
||||
Reference in New Issue
Block a user