@@ -28,6 +28,9 @@ import TaskHeader from "./TaskHeader"
2828import AutoApproveMenu from "./AutoApproveMenu"
2929import { AudioType } from "../../../../src/shared/WebviewMessage"
3030import { validateCommand } from "../../utils/command-validation"
31+ import { Button } from "../ui/button-pear-scn"
32+ import { DownloadIcon } from "@radix-ui/react-icons"
33+ import { vscBackground , vscBadgeBackground , vscEditorBackground , vscForeground , vscInputBorder } from "../ui"
3134
3235interface ChatViewProps {
3336 isHidden : boolean
@@ -991,6 +994,22 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie
991994 setMode = { setMode }
992995 />
993996 ) }
997+ { ! task && (
998+ < AutoApproveMenu
999+ style = { {
1000+ marginLeft : "50px" ,
1001+ marginRight : "50px" ,
1002+ paddingLeft : "25px" ,
1003+ paddingRight : "25px" ,
1004+ paddingTop : "10px" ,
1005+ paddingBottom : "10px" ,
1006+ borderRadius : "12px" ,
1007+ flex : "0 1 auto" , // flex-grow: 0, flex-shrink: 1, flex-basis: auto
1008+ minHeight : 0 ,
1009+ background : vscEditorBackground ,
1010+ } }
1011+ />
1012+ ) }
9941013 { task ? (
9951014 < TaskHeader
9961015 task = { task }
@@ -1010,7 +1029,7 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie
10101029 minHeight : 0 ,
10111030 overflowY : "auto" ,
10121031 display : "flex" ,
1013- flexDirection : "column" ,
1032+ flexDirection : "column-reverse " ,
10141033 paddingBottom : "10px" ,
10151034 } } >
10161035 { showAnnouncement && < Announcement version = { version } hideAnnouncement = { hideAnnouncement } /> }
@@ -1040,15 +1059,6 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie
10401059 // This ensures it takes its natural height when there's space
10411060 // but becomes scrollable when the viewport is too small
10421061 */ }
1043- { ! task && (
1044- < AutoApproveMenu
1045- style = { {
1046- marginBottom : - 2 ,
1047- flex : "0 1 auto" , // flex-grow: 0, flex-shrink: 1, flex-basis: auto
1048- minHeight : 0 ,
1049- } }
1050- />
1051- ) }
10521062
10531063 { task && (
10541064 < >
@@ -1079,7 +1089,20 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie
10791089 initialTopMostItemIndex = { groupedMessages . length - 1 }
10801090 />
10811091 </ div >
1082- < AutoApproveMenu />
1092+ < AutoApproveMenu
1093+ style = { {
1094+ marginLeft : "50px" ,
1095+ marginRight : "50px" ,
1096+ paddingLeft : "25px" ,
1097+ paddingRight : "25px" ,
1098+ paddingTop : "10px" ,
1099+ paddingBottom : "10px" ,
1100+ borderRadius : "12px" ,
1101+ flex : "0 1 auto" , // flex-grow: 0, flex-shrink: 1, flex-basis: auto
1102+ minHeight : 0 ,
1103+ background : vscEditorBackground ,
1104+ } }
1105+ />
10831106 { showScrollToBottom ? (
10841107 < div
10851108 style = { {
@@ -1107,28 +1130,30 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie
11071130 padding : `${ primaryButtonText || secondaryButtonText || isStreaming ? "10" : "0" } px 15px 0px 15px` ,
11081131 } } >
11091132 { primaryButtonText && ! isStreaming && (
1110- < VSCodeButton
1111- appearance = "primary"
1133+ < Button
11121134 disabled = { ! enableButtons }
11131135 style = { {
1136+ backgroundColor : "#AFF349" ,
11141137 flex : secondaryButtonText ? 1 : 2 ,
11151138 marginRight : secondaryButtonText ? "6px" : "0" ,
11161139 } }
11171140 onClick = { ( e ) => handlePrimaryButtonClick ( inputValue , selectedImages ) } >
11181141 { primaryButtonText }
1119- </ VSCodeButton >
1142+ </ Button >
11201143 ) }
11211144 { ( secondaryButtonText || isStreaming ) && (
1122- < VSCodeButton
1123- appearance = "secondary"
1145+ < Button
1146+ variant = "secondary"
11241147 disabled = { ! enableButtons && ! ( isStreaming && ! didClickCancel ) }
11251148 style = { {
1149+ backgroundColor : vscInputBorder ,
1150+ color : vscForeground ,
11261151 flex : isStreaming ? 2 : 1 ,
11271152 marginLeft : isStreaming ? 0 : "6px" ,
11281153 } }
11291154 onClick = { ( e ) => handleSecondaryButtonClick ( inputValue , selectedImages ) } >
11301155 { isStreaming ? "Cancel" : secondaryButtonText }
1131- </ VSCodeButton >
1156+ </ Button >
11321157 ) }
11331158 </ div >
11341159 ) }
0 commit comments