From f213c8f393d7196b97dcb5988fee411541aff0ee Mon Sep 17 00:00:00 2001 From: JzoNg Date: Thu, 21 Nov 2024 17:38:05 +0800 Subject: [PATCH] fix: version switch --- .../plugins/plugin-detail-panel/detail-header.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/app/components/plugins/plugin-detail-panel/detail-header.tsx b/web/app/components/plugins/plugin-detail-panel/detail-header.tsx index 1037f4670e..767366938f 100644 --- a/web/app/components/plugins/plugin-detail-panel/detail-header.tsx +++ b/web/app/components/plugins/plugin-detail-panel/detail-header.tsx @@ -173,7 +173,7 @@ const DetailHeader = ({ {verified && <RiVerifiedBadgeLine className="shrink-0 ml-0.5 w-4 h-4 text-text-accent" />} <PluginVersionPicker - disabled={!isFromMarketplace || !hasNewVersion} + disabled={!isFromMarketplace} isShow={isShow} onShowChange={setIsShow} pluginID={plugin_id} @@ -187,13 +187,13 @@ const DetailHeader = ({ className={cn( 'mx-1', isShow && 'bg-state-base-hover', - (isShow || isFromMarketplace) && hasNewVersion && 'hover:bg-state-base-hover', + (isShow || isFromMarketplace) && 'hover:bg-state-base-hover', )} uppercase={false} text={ <> <div>{isFromGitHub ? meta!.version : version}</div> - {isFromMarketplace && hasNewVersion && <RiArrowLeftRightLine className='ml-1 w-3 h-3 text-text-tertiary' />} + {isFromMarketplace && <RiArrowLeftRightLine className='ml-1 w-3 h-3 text-text-tertiary' />} </> } hasRedCornerMark={hasNewVersion}