style: parameter popover maxheight

main
jialin 9 months ago
parent d60e052f05
commit ac1bf7c9bf

@ -34,6 +34,7 @@ const IncompatibleInfo = styled.div`
}
li {
position: relative;
line-height: 20px;
}
li.normal::before {
position: absolute;

@ -1,5 +1,6 @@
import AutoTooltip from '@/components/auto-tooltip';
import IconFont from '@/components/icon-font';
import OverlayScroller from '@/components/overlay-scroller';
import {
ClearOutlined,
DeleteOutlined,
@ -278,21 +279,27 @@ const ModelItem: React.FC<ModelItemProps> = forwardRef((props, ref) => {
</Dropdown>
<Popover
placement="bottomRight"
overlayInnerStyle={{ width: 384 }}
overlayInnerStyle={{ width: 384, paddingInline: 0 }}
content={
<DynamicParams
ref={formRef}
onValuesChange={OnValuesChange}
paramsConfig={paramsConfig}
initialValues={initialValues}
showModelSelector={false}
/>
<OverlayScroller
maxHeight={500}
style={{ paddingInline: '16px' }}
theme="os-theme-dark"
>
<DynamicParams
ref={formRef}
onValuesChange={OnValuesChange}
paramsConfig={paramsConfig}
initialValues={initialValues}
showModelSelector={false}
/>
</OverlayScroller>
}
trigger={['click']}
arrow={false}
fresh={true}
title={
<div>
<div style={{ paddingInline: '16px' }}>
<Checkbox onChange={handleApplyToAllModels}>
{intl.formatMessage({
id: 'playground.compare.applytoall'

Loading…
Cancel
Save