Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

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

pengx17a84a40e77749
diff --git a/packages/frontend/core/src/components/doc-properties/types/date.tsx b/packages/frontend/core/src/components/doc-properties/types/date.tsx
index 902c66d9f2..21cd34e1ac 100644
--- a/packages/frontend/core/src/components/doc-properties/types/date.tsx
+++ b/packages/frontend/core/src/components/doc-properties/types/date.tsx
@@ -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}