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

View File

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