feat: mingcute icon down
This commit is contained in:
@@ -7,6 +7,7 @@ import { BlockchainIcon } from "~/components/icons/BlockchainIcon"
|
||||
import { toIPFS, toGateway } from "~/lib/ipfs-parser"
|
||||
import { IPFS_GATEWAY } from "~/lib/env"
|
||||
import { useTranslation } from "next-i18next"
|
||||
import { cn } from "~/lib/utils"
|
||||
|
||||
export const BlockchainInfo: React.FC<{
|
||||
site?: Profile | null
|
||||
@@ -20,7 +21,7 @@ export const BlockchainInfo: React.FC<{
|
||||
{({ open }: { open: boolean }) => (
|
||||
<>
|
||||
<Disclosure.Button
|
||||
className="flex w-full justify-between rounded-lg px-4 py-2 text-left text-gray-900 hover:bg-hover transition-colors md:rounded-xl"
|
||||
className="flex w-full justify-between items-center rounded-lg px-4 py-2 text-left text-gray-900 hover:bg-hover transition-colors md:rounded-xl"
|
||||
aria-label="toggle chain info"
|
||||
>
|
||||
<span>
|
||||
@@ -38,11 +39,12 @@ export const BlockchainInfo: React.FC<{
|
||||
})}
|
||||
</span>
|
||||
</span>
|
||||
<ChevronUpIcon
|
||||
className={`${
|
||||
open ? "rotate-180" : "rotate-90"
|
||||
} h-5 w-5 text-gray-500 transform transition-transform`}
|
||||
/>
|
||||
<span
|
||||
className={cn(
|
||||
"i-mingcute:down-line text-lg text-gray-500 transform transition-transform",
|
||||
open ? "" : "rotate-180",
|
||||
)}
|
||||
></span>
|
||||
</Disclosure.Button>
|
||||
<Disclosure.Panel className="px-5 py-2 text-sm text-gray-500 w-full overflow-hidden">
|
||||
<ul className="space-y-2">
|
||||
|
||||
@@ -100,7 +100,7 @@ export const PatronModal: React.FC<{
|
||||
open={open}
|
||||
setOpen={setOpen}
|
||||
title={
|
||||
t("Become a patron to {{name}}", {
|
||||
t("Become a patron of {{name}}", {
|
||||
name: site?.name,
|
||||
}) || ""
|
||||
}
|
||||
@@ -165,7 +165,7 @@ export const PatronModal: React.FC<{
|
||||
isLoading={tipCharacter.isLoading}
|
||||
ref={submitRef}
|
||||
>
|
||||
{t("Become a patron to {{name}}", {
|
||||
{t("Become a patron of {{name}}", {
|
||||
name: site?.name,
|
||||
})}
|
||||
</Button>
|
||||
|
||||
@@ -214,7 +214,7 @@ export const SiteHeader: React.FC<{
|
||||
<div className="xlog-site-name text-2xl sm:text-3xl font-bold text-zinc-900 leading-snug break-words min-w-0">
|
||||
{site?.name}
|
||||
</div>
|
||||
<div className="ml-0 sm:ml-8 space-x-3 sm:space-x-4 flex items-center sm:static absolute -bottom-0 left-0">
|
||||
<div className="ml-0 sm:ml-8 space-x-3 sm:space-x-4 flex items-center sm:static absolute -bottom-0 right-0">
|
||||
<div className="xlog-site-more-menu relative inline-block align-middle">
|
||||
<Menu
|
||||
target={
|
||||
@@ -287,7 +287,7 @@ export const SiteHeader: React.FC<{
|
||||
<span className="xlog-site-follow-count block sm:inline-block">
|
||||
<FollowingCount siteId={site?.username} />
|
||||
</span>
|
||||
<span className="xlog-site-patron opacity-0 pointer-events-none">
|
||||
<span className="xlog-site-patron">
|
||||
<PatronButton site={site} />
|
||||
</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user