fix: hide viewSourceContent on mobile (#1711)
This commit is contained in:
parent
e730189f6b
commit
86caeb6df4
|
|
@ -1,3 +1,4 @@
|
|||
import { isMobile } from "@follow/components/hooks/useMobile.js"
|
||||
import type { FeedViewType } from "@follow/constants"
|
||||
import type { ReactNode } from "react"
|
||||
import { useCallback, useMemo } from "react"
|
||||
|
|
@ -147,7 +148,7 @@ export const useEntryActions = ({ entryId, view }: { entryId: string; view?: Fee
|
|||
{
|
||||
id: COMMAND_ID.entry.viewSourceContent,
|
||||
onClick: runCmdFn(COMMAND_ID.entry.viewSourceContent, [{ entryId }]),
|
||||
hide: isShowSourceContent || !entry?.entries.url,
|
||||
hide: isMobile() || isShowSourceContent || !entry?.entries.url,
|
||||
},
|
||||
{
|
||||
id: COMMAND_ID.entry.viewEntryContent,
|
||||
|
|
|
|||
Loading…
Reference in New Issue