style: temporarily adjust the style of the co-pilot (#2804)
This commit is contained in:
@@ -9,7 +9,12 @@ import { createRoot } from 'react-dom/client';
|
|||||||
import { ConversationList } from '../core/components/conversation-list';
|
import { ConversationList } from '../core/components/conversation-list';
|
||||||
import { FollowingUp } from '../core/components/following-up';
|
import { FollowingUp } from '../core/components/following-up';
|
||||||
import { openAIApiKeyAtom, useChatAtoms } from '../core/hooks';
|
import { openAIApiKeyAtom, useChatAtoms } from '../core/hooks';
|
||||||
import { detailContentActionsStyle, detailContentStyle } from './index.css';
|
import {
|
||||||
|
detailContentActionsStyle,
|
||||||
|
detailContentStyle,
|
||||||
|
inputStyle,
|
||||||
|
sendButtonStyle,
|
||||||
|
} from './index.css';
|
||||||
|
|
||||||
if (typeof window === 'undefined') {
|
if (typeof window === 'undefined') {
|
||||||
import('@blocksuite/blocks')
|
import('@blocksuite/blocks')
|
||||||
@@ -67,12 +72,14 @@ const Actions = () => {
|
|||||||
<FollowingUp questions={questions} />
|
<FollowingUp questions={questions} />
|
||||||
<div className={detailContentActionsStyle}>
|
<div className={detailContentActionsStyle}>
|
||||||
<Input
|
<Input
|
||||||
|
className={inputStyle}
|
||||||
value={input}
|
value={input}
|
||||||
onChange={text => {
|
onChange={text => {
|
||||||
setInput(text);
|
setInput(text);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<Button
|
<Button
|
||||||
|
className={sendButtonStyle}
|
||||||
onClick={useCallback(async () => {
|
onClick={useCallback(async () => {
|
||||||
await call(input);
|
await call(input);
|
||||||
await generateFollowingUp();
|
await generateFollowingUp();
|
||||||
|
|||||||
@@ -5,11 +5,23 @@ export const detailContentStyle = style({
|
|||||||
height: '100%',
|
height: '100%',
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
|
|
||||||
overflow: 'auto',
|
overflow: 'auto',
|
||||||
|
padding: '10px',
|
||||||
paddingLeft: '9px',
|
borderLeft: '1px solid var(--affine-border-color)',
|
||||||
paddingRight: '9px',
|
borderTop: '1px solid var(--affine-border-color)',
|
||||||
});
|
});
|
||||||
|
|
||||||
export const detailContentActionsStyle = style({});
|
export const detailContentActionsStyle = style({
|
||||||
|
marginTop: 'auto',
|
||||||
|
alignItems: 'flex-end',
|
||||||
|
marginBottom: '10px',
|
||||||
|
fontSize: 'var(--affine-font-xs)',
|
||||||
|
});
|
||||||
|
export const inputStyle = style({
|
||||||
|
fontSize: 'var(--affine-font-xs)',
|
||||||
|
});
|
||||||
|
export const sendButtonStyle = style({
|
||||||
|
marginTop: '10px',
|
||||||
|
borderRadius: '8px',
|
||||||
|
fontSize: 'var(--affine-font-xs)',
|
||||||
|
});
|
||||||
|
|||||||
@@ -4,4 +4,6 @@ export const conversationListStyle = style({
|
|||||||
display: 'flex',
|
display: 'flex',
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
gap: '30px',
|
gap: '30px',
|
||||||
|
height: 'calc(100% - 100px)',
|
||||||
|
overflow: 'auto',
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -2,6 +2,9 @@ import { style } from '@vanilla-extract/css';
|
|||||||
|
|
||||||
export const conversationStyle = style({
|
export const conversationStyle = style({
|
||||||
padding: '10px 18px',
|
padding: '10px 18px',
|
||||||
|
border: '1px solid var(--affine-border-color)',
|
||||||
|
fontSize: 'var(--affine-font-xs)',
|
||||||
|
lineHeight: '16px',
|
||||||
});
|
});
|
||||||
|
|
||||||
export const aiMessageStyle = style({
|
export const aiMessageStyle = style({
|
||||||
@@ -11,5 +14,5 @@ export const aiMessageStyle = style({
|
|||||||
|
|
||||||
export const humanMessageStyle = style({
|
export const humanMessageStyle = style({
|
||||||
borderRadius: '18px 18px 2px 18px',
|
borderRadius: '18px 18px 2px 18px',
|
||||||
backgroundColor: 'white',
|
backgroundColor: 'var(--affine-white-90)',
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -6,12 +6,15 @@ export const followingUpStyle = style({
|
|||||||
flexWrap: 'wrap',
|
flexWrap: 'wrap',
|
||||||
gap: '10px',
|
gap: '10px',
|
||||||
alignItems: 'flex-start',
|
alignItems: 'flex-start',
|
||||||
|
marginTop: '10px',
|
||||||
|
marginBottom: '10px',
|
||||||
});
|
});
|
||||||
|
|
||||||
export const questionStyle = style({
|
export const questionStyle = style({
|
||||||
backgroundColor: 'white',
|
backgroundColor: 'var(--affine-white-90)',
|
||||||
|
fontSize: 'var(--affine-font-xs)',
|
||||||
|
border: '1px solid var(--affine-border-color)',
|
||||||
borderRadius: '8px',
|
borderRadius: '8px',
|
||||||
color: '#8E8D91',
|
padding: '6px 12px',
|
||||||
padding: '2px 10px',
|
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user