mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-23 09:17:06 +08:00
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:
@@ -54,6 +54,7 @@ export class AffineAIPanelWidget extends WidgetComponent {
|
|||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
scrollbar-width: none !important;
|
scrollbar-width: none !important;
|
||||||
z-index: var(--affine-z-index-popover);
|
z-index: var(--affine-z-index-popover);
|
||||||
|
--affine-font-family: var(--affine-font-sans-family);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ai-panel-container {
|
.ai-panel-container {
|
||||||
|
|||||||
@@ -6,13 +6,17 @@ import {
|
|||||||
import { NotificationProvider } from '@blocksuite/affine-shared/services';
|
import { NotificationProvider } from '@blocksuite/affine-shared/services';
|
||||||
import type { EditorHost } from '@blocksuite/block-std';
|
import type { EditorHost } from '@blocksuite/block-std';
|
||||||
import { WithDisposable } from '@blocksuite/global/utils';
|
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 { property, state } from 'lit/decorators.js';
|
||||||
|
|
||||||
import type { CopyConfig } from '../type.js';
|
import type { CopyConfig } from '../type.js';
|
||||||
|
|
||||||
export class AIFinishTip extends WithDisposable(LitElement) {
|
export class AIFinishTip extends WithDisposable(LitElement) {
|
||||||
static override styles = css`
|
static override styles = css`
|
||||||
|
:host {
|
||||||
|
font-family: ${unsafeCSS(baseTheme.fontSansFamily)};
|
||||||
|
}
|
||||||
.finish-tip {
|
.finish-tip {
|
||||||
display: flex;
|
display: flex;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|||||||
Reference in New Issue
Block a user