feat: added template button for starting a new chat.

This commit is contained in:
2026-02-22 20:23:14 +02:00
parent 6364fdf1cd
commit a91949a2fd
3 changed files with 26 additions and 3 deletions

View File

@@ -95,7 +95,7 @@ pub fn Popup() -> impl IntoView {
view! {
<div class="flex flex-col rounded-lg bg-white dark:bg-zinc-900 text-zinc-950 dark:text-white h-screen w-full">
<header class="p-3">
<header class="relative p-3">
<input
class="w-full p-3 rounded-lg bg-zinc-200 dark:bg-zinc-950"
type="text"
@@ -111,8 +111,12 @@ pub fn Popup() -> impl IntoView {
}
prop:value=prompt_text
/>
<button class="absolute py-1 px-2 right-5 mt-2
rounded-full
dark:bg-slate-800
dark:hover:bg-slate-600">+</button>
</header>
<main class="flex-grow overflow-y-auto p-2">
<main class="flex-grow overflow-y-auto p-4">
<div class="flex flex-col">
<For each=move || messages.get()
key=|msg| msg.id