fix(mobile): hide readability action when enabled from action

This commit is contained in:
Stephen Zhou 2025-05-07 11:29:11 +08:00
parent 8bd186a4c3
commit 51afed6be3
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -81,6 +81,7 @@ const HeaderRightActionsImpl = ({
const showAISummarySetting = useGeneralSettingKey("summary") || !!entry?.settings?.summary
const showAITranslationSetting =
useGeneralSettingKey("translation") || !!entry?.settings?.translation
const showReadabilitySetting = !!entry?.settings?.readability
const feed = useFeed(entry?.feedId as string, (feed) => feed && { feedId: feed.id })
const subscription = useSubscription(feed?.feedId as string)
@ -172,7 +173,7 @@ const HeaderRightActionsImpl = ({
active: isStarred,
iconColor: isStarred ? "#facc15" : undefined,
},
{
!showReadabilitySetting && {
key: "ShowReadability",
title: "Show Readability",
icon: <DocmentCuteReIcon />,