fix(web): resolve readme-panel display and styling issues (#28658)

This commit is contained in:
yangzheli 2025-11-26 01:21:50 +08:00 committed by GitHub
parent a486c47b1e
commit b502d30e77
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View File

@ -24,7 +24,7 @@ export const ReadmeEntrance = ({
if (pluginDetail)
setCurrentPluginDetail(pluginDetail, showType)
}
if (!pluginDetail || BUILTIN_TOOLS_ARRAY.includes(pluginDetail.id))
if (!pluginDetail || !pluginDetail?.plugin_unique_identifier || BUILTIN_TOOLS_ARRAY.includes(pluginDetail.id))
return null
return (

View File

@ -86,18 +86,21 @@ const ReadmePanel: FC = () => {
const portalContent = showType === ReadmeShowType.drawer
? (
<div className='pointer-events-none fixed inset-0 z-[9997] flex justify-start'>
<div className='fixed inset-0 z-[999] flex justify-start' onClick={onClose}>
<div
className={cn(
'pointer-events-auto mb-2 ml-2 mr-2 mt-16 w-[600px] max-w-[600px] justify-start rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg p-0 shadow-xl',
)}
onClick={(event) => {
event.stopPropagation()
}}
>
{children}
</div>
</div>
)
: (
<div className='pointer-events-none fixed inset-0 z-[9997] flex items-center justify-center p-2'>
<div className='fixed inset-0 z-[999] flex items-center justify-center p-2' onClick={onClose}>
<div
className={cn(
'pointer-events-auto relative h-[calc(100vh-16px)] w-full max-w-[800px] rounded-2xl bg-components-panel-bg p-0 shadow-xl',