fix(style): fix some styles

This commit is contained in:
jialin
2025-11-19 11:46:18 +08:00
parent 71bbf59467
commit ca43c0b4b2
4 changed files with 5 additions and 3 deletions
@@ -119,6 +119,9 @@ const CompatibilityAlert: React.FC<CompatibilityAlertProps> = (props) => {
contentStyle={contentStyle} contentStyle={contentStyle}
type={type || 'warning'} type={type || 'warning'}
icon={renderIcon} icon={renderIcon}
style={{
paddingInlineEnd: showClose ? 20 : 16
}}
overlayScrollerProps={{ overlayScrollerProps={{
scrollbars: { scrollbars: {
autoHide: 'move' autoHide: 'move'
@@ -369,7 +369,7 @@ const AddModal: React.FC<AddModalProps> = (props) => {
}); });
}} }}
warningStatus={warningStatus} warningStatus={warningStatus}
contentStyle={{ paddingInline: 0 }} contentStyle={{ paddingInline: '0 6px' }}
></CompatibilityAlert> ></CompatibilityAlert>
<ModalFooter <ModalFooter
onCancel={handleCancel} onCancel={handleCancel}
@@ -601,7 +601,7 @@ const AddModal: FC<AddModalProps> = (props) => {
}); });
}} }}
warningStatus={warningStatus} warningStatus={warningStatus}
contentStyle={{ paddingInline: 0 }} contentStyle={{ paddingInline: '0 6px' }}
></CompatibilityAlert> ></CompatibilityAlert>
<ModalFooter <ModalFooter
onCancel={handleCancel} onCancel={handleCancel}
-1
View File
@@ -105,7 +105,6 @@ const DataForm: React.FC<DataFormProps> = forwardRef((props, ref) => {
} = props; } = props;
const { getScrollElementScrollableHeight, osInstance, scrollEventElement } = const { getScrollElementScrollableHeight, osInstance, scrollEventElement } =
useWrapperContext(); useWrapperContext();
console.log('data form render');
const { backendOptions, getBackendOptions } = useQueryBackends(); const { backendOptions, getBackendOptions } = useQueryBackends();
const { getGPUOptionList, gpuOptions, workerLabelOptions } = const { getGPUOptionList, gpuOptions, workerLabelOptions } =
useGenerateGPUOptions(); useGenerateGPUOptions();