mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-24 04:27:27 +08:00
chore: adjust padding of ask ai panel (#7287)
Related PR: https://github.com/toeverything/blocksuite/pull/7389
This commit is contained in:
+4
-11
@@ -2,6 +2,7 @@ import { type EditorHost, WithDisposable } from '@blocksuite/block-std';
|
|||||||
import {
|
import {
|
||||||
type AIItemGroupConfig,
|
type AIItemGroupConfig,
|
||||||
EdgelessRootService,
|
EdgelessRootService,
|
||||||
|
scrollbarStyle,
|
||||||
} from '@blocksuite/blocks';
|
} from '@blocksuite/blocks';
|
||||||
import { css, html, LitElement } from 'lit';
|
import { css, html, LitElement } from 'lit';
|
||||||
import { customElement, property } from 'lit/decorators.js';
|
import { customElement, property } from 'lit/decorators.js';
|
||||||
@@ -18,28 +19,20 @@ export class AskAIPanel extends WithDisposable(LitElement) {
|
|||||||
|
|
||||||
.ask-ai-panel {
|
.ask-ai-panel {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 8px;
|
padding: 8px 4px 8px 8px;
|
||||||
max-height: 374px;
|
max-height: 374px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
background: var(--affine-background-overlay-panel-color);
|
background: var(--affine-background-overlay-panel-color);
|
||||||
box-shadow: var(--affine-shadow-2);
|
box-shadow: var(--affine-shadow-2);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
z-index: var(--affine-z-index-popover);
|
z-index: var(--affine-z-index-popover);
|
||||||
|
scrollbar-gutter: stable;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ask-ai-panel::-webkit-scrollbar {
|
${scrollbarStyle('.ask-ai-panel')}
|
||||||
width: 5px;
|
|
||||||
max-height: 100px;
|
|
||||||
}
|
|
||||||
.ask-ai-panel::-webkit-scrollbar-thumb {
|
|
||||||
border-radius: 20px;
|
|
||||||
}
|
|
||||||
.ask-ai-panel:hover::-webkit-scrollbar-thumb {
|
.ask-ai-panel:hover::-webkit-scrollbar-thumb {
|
||||||
background-color: var(--affine-black-30);
|
background-color: var(--affine-black-30);
|
||||||
}
|
}
|
||||||
.ask-ai-panel::-webkit-scrollbar-corner {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
@property({ attribute: false })
|
@property({ attribute: false })
|
||||||
|
|||||||
Reference in New Issue
Block a user