fix(web): add a scrollbar when the setting-modal content overflows (#27620)

This commit is contained in:
yangzheli
2025-10-30 09:31:24 +08:00
committed by GitHub
parent 4ca7ba000c
commit c905c47775

View File

@@ -37,7 +37,7 @@ const FileUploadSettings = ({
{children}
</PortalToFollowElemTrigger>
<PortalToFollowElemContent style={{ zIndex: 50 }}>
<div className='w-[360px] rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg p-4 shadow-2xl'>
<div className='max-h-[calc(100vh-20px)] w-[360px] overflow-y-auto rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg p-4 shadow-2xl'>
<SettingContent
imageUpload={imageUpload}
onClose={() => onOpen(false)}