mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-12 07:36:42 +08:00
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 { FollowingUp } from '../core/components/following-up';
|
||||
import { openAIApiKeyAtom, useChatAtoms } from '../core/hooks';
|
||||
import { detailContentActionsStyle, detailContentStyle } from './index.css';
|
||||
import {
|
||||
detailContentActionsStyle,
|
||||
detailContentStyle,
|
||||
inputStyle,
|
||||
sendButtonStyle,
|
||||
} from './index.css';
|
||||
|
||||
if (typeof window === 'undefined') {
|
||||
import('@blocksuite/blocks')
|
||||
@@ -67,12 +72,14 @@ const Actions = () => {
|
||||
<FollowingUp questions={questions} />
|
||||
<div className={detailContentActionsStyle}>
|
||||
<Input
|
||||
className={inputStyle}
|
||||
value={input}
|
||||
onChange={text => {
|
||||
setInput(text);
|
||||
}}
|
||||
/>
|
||||
<Button
|
||||
className={sendButtonStyle}
|
||||
onClick={useCallback(async () => {
|
||||
await call(input);
|
||||
await generateFollowingUp();
|
||||
|
||||
@@ -5,11 +5,23 @@ export const detailContentStyle = style({
|
||||
height: '100%',
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
|
||||
overflow: 'auto',
|
||||
|
||||
paddingLeft: '9px',
|
||||
paddingRight: '9px',
|
||||
padding: '10px',
|
||||
borderLeft: '1px solid var(--affine-border-color)',
|
||||
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)',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user