Skip to content

Commit

Permalink
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,15 @@ export class ChatPanel extends WithDisposable(ShadowlessElement) {
}
.chat-panel-title {
background: var(--affine-background-primary-color);
position: relative;
padding: 8px 0px;
width: 100%;
height: 36px;
display: flex;
justify-content: space-between;
align-items: center;
z-index: 1;
div:first-child {
font-size: 14px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ export function setupCodeToolbarEntry(codeToolbar: AffineCodeToolbarWidget) {
const onAskAIClick = () => {
const { host } = codeToolbar;
const { selection } = host;
const imageBlock = codeToolbar.blockElement;
const codeBlock = codeToolbar.blockElement;
selection.setGroup('note', [
selection.create('block', { blockId: imageBlock.blockId }),
selection.create('block', { blockId: codeBlock.blockId }),
]);
};
codeToolbar.setupDefaultConfig();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ export class AIAnswerText extends WithDisposable(LitElement) {
editor-host * {
box-sizing: border-box;
}
editor-host {
isolation: isolate;
}
}
${textBlockStyles}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const header = style({
alignItems: 'center',
flexShrink: 0,
padding: '0 16px',
zIndex: 1,
gap: '12px',
background: cssVar('backgroundPrimaryColor'),
selectors: {
Expand Down

0 comments on commit fbf6760

Please sign in to comment.