fix(style): fix some styles
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user