Skip to content

Commit aec5ac5

Browse files
committed
(human) more chat style adjustments
1 parent d7b562c commit aec5ac5

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

extensions/vscode/webviews/chat/src/components/Events/Messages.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export const ModelMessage = ({pos, evt}:{pos: number, evt: any}) => {
191191
const defaultOpen = shouldOpenDetails(evt) ? "details" : undefined;
192192
return (
193193
<div className={cn(
194-
"py-px pl-0.5 rounded",
194+
"mr-20 py-px pl-0.5 rounded",
195195
"bg-linear-to-r from-lime-500/80 from-5% via-[#1e1e1e] via-10% to-[#1e1e1e]",
196196
)}>
197197
<div className={cn(
Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
import { useChat } from "@/hooks/useChat"
22

3-
export const Welcome = () => {
3+
export const Welcome = ({
4+
title = "Welcome",
5+
subtitle = "How can I help today?",
6+
}:{
7+
title?: string
8+
subtitle?: string
9+
}) => {
410
const { chatState } = useChat()
511
const username = chatState?.env?.user
612

713
return (
8-
<div className="flex flex-col m-auto border border-sky-500/50 rounded-xl px-20 py-10 gap-5">
9-
<div className="flex gap-4 items-baseline">
10-
<span className="font-thin text-5xl"
11-
>Welcome</span>
12-
{ username && <span className="font-thin text-5xl text-sky-500" >{username}</span> }
13-
{ !username && <span className="font-thin text-5xl" >to <span className=" text-lime-500">Veggie</span></span> }
14+
<div className="flex flex-col m-auto border border-sky-500/50 rounded-xl px-20 py-10 gap-5 justify-stretch text-center">
15+
<div className="sm:flex gap-4 item-center sm:items-baseline w-full">
16+
<p className="font-thin text-4xl sm:text-5xl mb-4 sm:mb-0">{title}</p>
17+
{ username && <p className="font-thin text-5xl text-sky-500" >{username}</p> }
18+
{ !username && <p className="font-thin text-5xl" >to <span className=" text-lime-500">Veggie</span></p> }
1419
</div>
15-
<span className="font-thin text-xl w-full text-center"
16-
>How can I help today?</span>
20+
<span className="font-thin text-xl w-full">{subtitle}</span>
1721
</div>
1822
)
1923
}

0 commit comments

Comments
 (0)