fix(mobile): date picker style (#9143)

fix AF-1871
This commit is contained in:
pengx17 2024-12-16 03:44:15 +00:00
parent 8eafc057fa
commit a84a40e777
No known key found for this signature in database
GPG Key ID: 23F23D9E8B3971ED

View File

@ -26,7 +26,12 @@ export const DateValue = ({ value, onChange }: PropertyValueProps) => {
const { parsedValue, displayValue } = useParsedDate(value);
return (
<Menu items={<DatePicker value={parsedValue} onChange={onChange} />}>
<Menu
contentOptions={{
style: BUILD_CONFIG.isMobileEdition ? { padding: '15px 20px' } : {},
}}
items={<DatePicker value={parsedValue} onChange={onChange} />}
>
<PropertyValue
className={parsedValue ? '' : styles.empty}
isEmpty={!parsedValue}