From 2694891574205b2147e21250a8fbf38333764a65 Mon Sep 17 00:00:00 2001 From: Qi <474021214@qq.com> Date: Tue, 15 Aug 2023 13:53:19 +0800 Subject: [PATCH] fix: ui issues (#3755) (cherry picked from commit a4fe7dd1193efa3453b3b09e85cfbb69ca289b49) --- apps/core/src/components/affine/language-menu/index.tsx | 1 - .../blocksuite/block-suite-header-title/styles.css.ts | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/apps/core/src/components/affine/language-menu/index.tsx b/apps/core/src/components/affine/language-menu/index.tsx index fb65afd6ba..20ae9b00ed 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 a500545903..abbcfb5a7d 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',