mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-15 17:15:54 +08:00
chore: enhance ListWrapper and PluginPage components with stable scro… (#16048)
This commit is contained in:
parent
223ab5a38f
commit
939dcb4c0a
@ -37,7 +37,9 @@ const ListWrapper = ({
|
|||||||
}, [handleQueryPlugins, marketplaceCollections, marketplaceCollectionsFromClient, isSuccessCollections])
|
}, [handleQueryPlugins, marketplaceCollections, marketplaceCollectionsFromClient, isSuccessCollections])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='relative flex flex-col grow px-12 py-2 bg-background-default-subtle'>
|
<div
|
||||||
|
style={{ scrollbarGutter: 'stable' }}
|
||||||
|
className='relative flex flex-col grow px-12 py-2 bg-background-default-subtle'>
|
||||||
{
|
{
|
||||||
plugins && (
|
plugins && (
|
||||||
<div className='flex items-center mb-4 pt-3'>
|
<div className='flex items-center mb-4 pt-3'>
|
||||||
|
@ -145,6 +145,7 @@ const PluginPage = ({
|
|||||||
<div
|
<div
|
||||||
id='marketplace-container'
|
id='marketplace-container'
|
||||||
ref={containerRef}
|
ref={containerRef}
|
||||||
|
style={{ scrollbarGutter: 'stable' }}
|
||||||
className={cn('grow relative flex flex-col overflow-y-auto border-t border-divider-subtle', activeTab === 'plugins'
|
className={cn('grow relative flex flex-col overflow-y-auto border-t border-divider-subtle', activeTab === 'plugins'
|
||||||
? 'rounded-t-xl bg-components-panel-bg'
|
? 'rounded-t-xl bg-components-panel-bg'
|
||||||
: 'bg-background-body',
|
: 'bg-background-body',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user