fix: font of AI panel should not be affected by the font of Editor settings (#9305)

Fix issue [BS-2210](https://linear.app/affine-design/issue/BS-2210).
This commit is contained in:
akumatus
2024-12-25 10:54:57 +00:00
parent 995978a632
commit 5e2e58de09
2 changed files with 6 additions and 1 deletions

View File

@@ -54,6 +54,7 @@ export class AffineAIPanelWidget extends WidgetComponent {
overflow-y: auto;
scrollbar-width: none !important;
z-index: var(--affine-z-index-popover);
--affine-font-family: var(--affine-font-sans-family);
}
.ai-panel-container {

View File

@@ -6,13 +6,17 @@ import {
import { NotificationProvider } from '@blocksuite/affine-shared/services';
import type { EditorHost } from '@blocksuite/block-std';
import { WithDisposable } from '@blocksuite/global/utils';
import { css, html, LitElement, nothing } from 'lit';
import { baseTheme } from '@toeverything/theme';
import { css, html, LitElement, nothing, unsafeCSS } from 'lit';
import { property, state } from 'lit/decorators.js';
import type { CopyConfig } from '../type.js';
export class AIFinishTip extends WithDisposable(LitElement) {
static override styles = css`
:host {
font-family: ${unsafeCSS(baseTheme.fontSansFamily)};
}
.finish-tip {
display: flex;
box-sizing: border-box;