diff --git a/src/assets/styles/extra.css b/src/assets/styles/extra.css index 62b5a1dc9..f694efddd 100755 --- a/src/assets/styles/extra.css +++ b/src/assets/styles/extra.css @@ -138,7 +138,6 @@ ph { width: 3em; height: 3em; right: 0; - bottom: 0; content: ''; } @@ -155,6 +154,7 @@ ph { transparent 50%, var(--gray-6) 0 ); + transform: translateY(-12px); border-left: 1px solid var(--gray-5); border-top: 1px solid var(--gray-5); border-top-left-radius: 3px; diff --git a/src/components/widgets/Subscribe/hooks.tsx b/src/components/widgets/Subscribe/hooks.tsx index fa3befa1f..d25dafa14 100644 --- a/src/components/widgets/Subscribe/hooks.tsx +++ b/src/components/widgets/Subscribe/hooks.tsx @@ -13,7 +13,7 @@ const SWR_CHECK_SUBSCRIBE_KEY = 'subscribe-status' export const useSubscribeStatus = () => { return useSWR(SWR_CHECK_SUBSCRIBE_KEY, apiClient.subscribe.check, { - refreshInterval: 10e8, + refreshInterval: 60_000 * 10, }) } diff --git a/src/components/widgets/xLogInfo/index.tsx b/src/components/widgets/xLogInfo/index.tsx index 1f9c95370..038f3adae 100644 --- a/src/components/widgets/xLogInfo/index.tsx +++ b/src/components/widgets/xLogInfo/index.tsx @@ -1,5 +1,5 @@ import { clsx } from 'clsx' -import type { FC } from 'react' +import type { FC, SVGProps } from 'react' import { useState } from 'react' import { Collapse } from 'react-collapse' @@ -32,7 +32,7 @@ export const XLogInfoForNote: FC<{ export const XLogInfoBase: FC<{ meta?: XLogMeta }> = ({ meta }) => { - const [collapse, setCollapse] = useState(true) + const [collapse, setCollapse] = useState(false) if (!meta) return null @@ -96,14 +96,22 @@ export const XLogInfoBase: FC<{
{ setCollapse((c) => !c) }} > -
- - 此文章已经由它的创作者签名并安全地存储在区块链上。 +
+ + + 此文章已经由它的创作者签名并安全地存储在区块链上。 + +
@@ -128,3 +136,20 @@ const SafeIcon = () => ( /> ) + +const IcRoundKeyboardArrowDown = (props: SVGProps) => { + return ( + + + + ) +} diff --git a/src/components/widgets/xLogSummary/index.tsx b/src/components/widgets/xLogSummary/index.tsx index 7ac1e5dc8..75d66fe69 100644 --- a/src/components/widgets/xLogSummary/index.tsx +++ b/src/components/widgets/xLogSummary/index.tsx @@ -23,11 +23,10 @@ export const XLogSummary: FC<{ }) }, { - revalidateOnReconnect: false, revalidateOnFocus: false, errorRetryCount: 3, errorRetryInterval: 1000, - dedupingInterval: 0, + refreshInterval: 0, }, ) diff --git a/src/pages/notes/[id].tsx b/src/pages/notes/[id].tsx index 16fd6ed9c..c7dd86f49 100644 --- a/src/pages/notes/[id].tsx +++ b/src/pages/notes/[id].tsx @@ -213,7 +213,6 @@ const NoteView: React.FC<{ id: string }> = memo((props) => { }, }, })} - {isSecret && !isLogged ? (

@@ -238,9 +237,9 @@ const NoteView: React.FC<{ id: string }> = memo((props) => { )}

{note.topic && } +
-