@@ -18,8 +18,7 @@ import {
1818} from "antd" ;
1919import { CSSProperties , useEffect , useMemo , useState } from "react" ;
2020import { Entries } from "type-fest" ;
21-
22- import { CSS , useAsyncEffect } from "@cocalc/frontend/app-framework" ;
21+ import { useAsyncEffect } from "@cocalc/frontend/app-framework" ;
2322import getChatActions from "@cocalc/frontend/chat/get-actions" ;
2423import { A , Paragraph , RawPrompt , Text } from "@cocalc/frontend/components" ;
2524import AIAvatar from "@cocalc/frontend/components/ai-avatar" ;
@@ -38,7 +37,6 @@ import track from "@cocalc/frontend/user-tracking";
3837import { LLMTools } from "@cocalc/jupyter/types" ;
3938import { LanguageModel } from "@cocalc/util/db-schema/llm-utils" ;
4039import { capitalize , getRandomColor , unreachable } from "@cocalc/util/misc" ;
41- import { COLORS } from "@cocalc/util/theme" ;
4240import { JupyterActions } from "../browser-actions" ;
4341import { CODE_BAR_BTN_STYLE } from "../consts" ;
4442import { cellOutputToText } from "../output-messages/ansi" ;
@@ -48,7 +46,6 @@ interface Props {
4846 id : string ;
4947 style ?: CSSProperties ;
5048 llmTools ?: LLMTools ;
51- is_current ?: boolean ;
5249}
5350
5451const CONTENT_WIDTH = 600 ;
@@ -213,7 +210,6 @@ export function LLMCellTool({
213210 id,
214211 style,
215212 llmTools,
216- is_current,
217213} : Props ) {
218214 const { actions : project_actions , onCoCalcCom } = useProjectContext ( ) ;
219215 const { project_id, path } = useFrameContext ( ) ;
@@ -388,13 +384,6 @@ export function LLMCellTool({
388384 }
389385
390386 function renderDropdown ( ) {
391- const txtStyle : CSS = is_current
392- ? {
393- color : COLORS . AI_ASSISTANT_FONT ,
394- fontWeight : "bold" ,
395- }
396- : { } ;
397-
398387 return (
399388 < Dropdown
400389 trigger = { [ "click" ] }
@@ -406,7 +395,8 @@ export function LLMCellTool({
406395 key : mode ,
407396 label : (
408397 < Tooltip title = { action . descr } placement = { "left" } >
409- < Icon name = { action . icon } /> { capitalize ( mode ) }
398+ < Icon name = { action . icon } style = { { marginRight : "5px" } } /> { " " }
399+ { capitalize ( mode ) }
410400 </ Tooltip >
411401 ) ,
412402 onClick : ( ) => setMode ( mode as Mode ) ,
@@ -415,22 +405,16 @@ export function LLMCellTool({
415405 ) ,
416406 } }
417407 >
418- < Tooltip title = "Use AI assistance on this cell" >
408+ < Tooltip title = "Use AI assitant on this cell" >
419409 < Button
420410 disabled = { isQuerying }
421411 type = "text"
422412 size = "small"
423413 style = { CODE_BAR_BTN_STYLE }
424- icon = {
425- < AIAvatar
426- size = { 14 }
427- style = { { top : "1px" } }
428- iconColor = { is_current ? COLORS . AI_ASSISTANT_FONT : undefined }
429- />
430- }
414+ icon = { < AIAvatar size = { 14 } style = { { top : "1px" } } /> }
431415 >
432416 < Space size = "small" >
433- < span style = { txtStyle } > Tools </ span >
417+ Assistant
434418 < Icon name = "angle-down" />
435419 </ Space >
436420 </ Button >
0 commit comments