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(core): avoid shaking when renaming doc in title bar (#6847)

CatsJuice960b90693551
diff --git a/packages/frontend/component/src/ui/editable/inline-edit.tsx b/packages/frontend/component/src/ui/editable/inline-edit.tsx
index d4a638893c..aad7e9101c 100644
--- a/packages/frontend/component/src/ui/editable/inline-edit.tsx
+++ b/packages/frontend/component/src/ui/editable/inline-edit.tsx
@@ -179,8 +179,8 @@ export const InlineEdit = ({
} as CSSProperties;
const inputInheritsStyles = {
...inputWrapperInheritsStyles,
- padding: undefined,
- margin: undefined,
+ padding: 0,
+ margin: 0,
};
return (
diff --git a/packages/frontend/core/src/components/blocksuite/block-suite-header/title/style.css.ts b/packages/frontend/core/src/components/blocksuite/block-suite-header/title/style.css.ts
index a58d338971..7b0a0a5a76 100644
--- a/packages/frontend/core/src/components/blocksuite/block-suite-header/title/style.css.ts
+++ b/packages/frontend/core/src/components/blocksuite/block-suite-header/title/style.css.ts
@@ -6,7 +6,6 @@ export const title = style({
selectors: {
'&[data-editing="true"]': {
['WebkitAppRegion' as string]: 'no-drag',
- flexGrow: 1,
},
},
});