style: parameter popover maxheight

This commit is contained in:
jialin
2025-04-21 20:23:14 +08:00
parent d60e052f05
commit ac1bf7c9bf
2 changed files with 17 additions and 9 deletions
@@ -34,6 +34,7 @@ const IncompatibleInfo = styled.div`
} }
li { li {
position: relative; position: relative;
line-height: 20px;
} }
li.normal::before { li.normal::before {
position: absolute; position: absolute;
@@ -1,5 +1,6 @@
import AutoTooltip from '@/components/auto-tooltip'; import AutoTooltip from '@/components/auto-tooltip';
import IconFont from '@/components/icon-font'; import IconFont from '@/components/icon-font';
import OverlayScroller from '@/components/overlay-scroller';
import { import {
ClearOutlined, ClearOutlined,
DeleteOutlined, DeleteOutlined,
@@ -278,21 +279,27 @@ const ModelItem: React.FC<ModelItemProps> = forwardRef((props, ref) => {
</Dropdown> </Dropdown>
<Popover <Popover
placement="bottomRight" placement="bottomRight"
overlayInnerStyle={{ width: 384 }} overlayInnerStyle={{ width: 384, paddingInline: 0 }}
content={ content={
<DynamicParams <OverlayScroller
ref={formRef} maxHeight={500}
onValuesChange={OnValuesChange} style={{ paddingInline: '16px' }}
paramsConfig={paramsConfig} theme="os-theme-dark"
initialValues={initialValues} >
showModelSelector={false} <DynamicParams
/> ref={formRef}
onValuesChange={OnValuesChange}
paramsConfig={paramsConfig}
initialValues={initialValues}
showModelSelector={false}
/>
</OverlayScroller>
} }
trigger={['click']} trigger={['click']}
arrow={false} arrow={false}
fresh={true} fresh={true}
title={ title={
<div> <div style={{ paddingInline: '16px' }}>
<Checkbox onChange={handleApplyToAllModels}> <Checkbox onChange={handleApplyToAllModels}>
{intl.formatMessage({ {intl.formatMessage({
id: 'playground.compare.applytoall' id: 'playground.compare.applytoall'