File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed
webview-ui/src/components/chat Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,16 @@ const TaskHeader = ({
5858
5959 const { width : windowWidth } = useWindowSize ( )
6060
61+ const condenseButton = (
62+ < button
63+ title = { t ( "chat:task.condenseContext" ) }
64+ disabled = { buttonsDisabled }
65+ onClick = { ( ) => currentTaskItem && handleCondenseContext ( currentTaskItem . id ) }
66+ className = "shrink-0 min-h-[20px] min-w-[20px] p-[2px] cursor-pointer disabled:cursor-not-allowed opacity-85 hover:opacity-100 bg-transparent border-none rounded-md" >
67+ < FoldVertical size = { 16 } />
68+ </ button >
69+ )
70+
6171 return (
6272 < div className = "py-2 px-3" >
6373 < div
@@ -107,13 +117,7 @@ const TaskHeader = ({
107117 : undefined
108118 }
109119 />
110- < button
111- title = { t ( "chat:task.condenseContext" ) }
112- disabled = { buttonsDisabled }
113- onClick = { ( ) => currentTaskItem && handleCondenseContext ( currentTaskItem . id ) }
114- className = "shrink-0 min-h-[20px] min-w-[20px] p-[2px] cursor-pointer disabled:cursor-not-allowed opacity-85 hover:opacity-100 bg-transparent border-none rounded-md" >
115- < FoldVertical size = { 16 } />
116- </ button >
120+ { condenseButton }
117121 { ! ! totalCost && < VSCodeBadge > ${ totalCost . toFixed ( 2 ) } </ VSCodeBadge > }
118122 </ div >
119123 ) }
@@ -158,6 +162,7 @@ const TaskHeader = ({
158162 : undefined
159163 }
160164 />
165+ { condenseButton }
161166 </ div >
162167 ) }
163168 < div className = "flex justify-between items-center h-[20px]" >
You can’t perform that action at this time.
0 commit comments