Skip to content

Commit e49013d

Browse files
Himanshu-Singh-Chauhannang-dev
authored andcommitted
tail
1 parent 994ac2d commit e49013d

File tree

3 files changed

+34
-4
lines changed

3 files changed

+34
-4
lines changed

webview-ui/src/components/chat/ChatRow.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,12 @@ export const ChatRowContent = ({
238238
]
239239
case "followup":
240240
return [
241-
<span
242-
className="codicon codicon-question"
243-
style={{ color: normalColor, marginBottom: "-1.5px" }}></span>,
244-
<span style={{ color: normalColor, fontWeight: "bold" }}>Roo has a question:</span>,
241+
<div className="flex items-center gap-2 p-2">
242+
<span
243+
className="codicon codicon-question"
244+
style={{ color: normalColor, marginBottom: "-1.5px" }}></span>
245+
,<span style={{ color: normalColor, fontWeight: "bold" }}>Roo has a question:</span>,
246+
</div>,
245247
]
246248
default:
247249
return [null, null]

webview-ui/src/components/chat/TaskHeader.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { BackspaceIcon, ChatBubbleOvalLeftIcon } from "@heroicons/react/24/outli
1212
import { vscBadgeBackground, vscEditorBackground, vscInputBackground } from "../ui"
1313
import { DownloadIcon } from "@radix-ui/react-icons"
1414
import { ChevronDownIcon, ChevronUpIcon } from "@radix-ui/react-icons"
15+
import { Tail } from "../ui/tail"
1516

1617
interface TaskHeaderProps {
1718
task: ClineMessage
@@ -357,6 +358,7 @@ const TaskHeader: React.FC<TaskHeaderProps> = ({
357358
</div>
358359
</>
359360
)}
361+
<Tail />
360362
</div>
361363
{/* {apiProvider === "" && (
362364
<div

webview-ui/src/components/ui/tail.tsx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import * as React from "react"
2+
import { cn } from "../../lib/utils"
3+
import { vscEditorBackground } from "."
4+
5+
interface TailProps extends React.HTMLAttributes<SVGElement> {
6+
className?: string
7+
}
8+
9+
const Tail = React.forwardRef<SVGSVGElement, TailProps>(({ className, ...props }, ref) => {
10+
return (
11+
<div className="absolute z-10 bottom-[-7px] right-[-4px]">
12+
{/* sdfasdf */}
13+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
14+
<path
15+
d="M10.5 13.7039C6.80663 11.782 7.15173 11.3646 1.74219 11.8676L11.8696 1.70312C11.166 6.11013 12.1259 7.5877 14 9C16.2799 10.7182 16.0686 12.1951 15.2132 13.4846C14.3363 14.8066 12.5221 14.7561 10.5 13.7039Z"
16+
fill={vscEditorBackground}
17+
// fill="#FFFFFF"
18+
/>
19+
</svg>
20+
</div>
21+
)
22+
})
23+
24+
Tail.displayName = "Tail"
25+
26+
export { Tail }

0 commit comments

Comments
 (0)