From f79324b6a1fe3676564600c5ae19589cf8334237 Mon Sep 17 00:00:00 2001 From: L-Sun Date: Fri, 21 Feb 2025 06:12:05 +0000 Subject: [PATCH] chore(editor): update shadow of ask-ai-panel (#10336) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Close [PD-2343](https://linear.app/affine-design/issue/PD-2343/[ui]-ai-面板-shadow-改为-overlaypanelshadow) --- .../blocksuite/presets/ai/_common/components/ask-ai-panel.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/frontend/core/src/blocksuite/presets/ai/_common/components/ask-ai-panel.ts b/packages/frontend/core/src/blocksuite/presets/ai/_common/components/ask-ai-panel.ts index ccfb239882..a8fb411082 100644 --- a/packages/frontend/core/src/blocksuite/presets/ai/_common/components/ask-ai-panel.ts +++ b/packages/frontend/core/src/blocksuite/presets/ai/_common/components/ask-ai-panel.ts @@ -5,7 +5,8 @@ import { scrollbarStyle, } from '@blocksuite/affine/blocks'; import { WithDisposable } from '@blocksuite/affine/global/utils'; -import { css, html, LitElement } from 'lit'; +import { cssVar } from '@toeverything/theme'; +import { css, html, LitElement, unsafeCSS } from 'lit'; import { property } from 'lit/decorators.js'; import { styleMap } from 'lit/directives/style-map.js'; @@ -21,7 +22,7 @@ export class AskAIPanel extends WithDisposable(LitElement) { max-height: 374px; overflow-y: auto; background: var(--affine-background-overlay-panel-color); - box-shadow: var(--affine-shadow-2); + box-shadow: ${unsafeCSS(cssVar('overlayPanelShadow'))}; border-radius: 8px; z-index: var(--affine-z-index-popover); scrollbar-gutter: stable;