diff --git a/apps/core/src/components/affine/language-menu/index.tsx b/apps/core/src/components/affine/language-menu/index.tsx index fb65afd6b..20ae9b00e 100644 --- a/apps/core/src/components/affine/language-menu/index.tsx +++ b/apps/core/src/components/affine/language-menu/index.tsx @@ -12,7 +12,6 @@ import type { ReactElement } from 'react'; import { useCallback } from 'react'; export const StyledListItem = styled(MenuItem)(() => ({ - width: '132px', height: '38px', textTransform: 'capitalize', })); diff --git a/apps/core/src/components/blocksuite/block-suite-header-title/styles.css.ts b/apps/core/src/components/blocksuite/block-suite-header-title/styles.css.ts index a50054590..abbcfb5a7 100644 --- a/apps/core/src/components/blocksuite/block-suite-header-title/styles.css.ts +++ b/apps/core/src/components/blocksuite/block-suite-header-title/styles.css.ts @@ -1,4 +1,4 @@ -import { style } from '@vanilla-extract/css'; +import { type ComplexStyleRule, style } from '@vanilla-extract/css'; export const headerTitleContainer = style({ display: 'flex', @@ -10,11 +10,11 @@ export const headerTitleContainer = style({ }); export const titleEditButton = style({ - flexGrow: 1, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', -}); + WebkitAppRegion: 'no-drag', +} as ComplexStyleRule); export const titleInput = style({ position: 'absolute',