Improve chat navigation, model selection, and streaming

This commit is contained in:
Rami Bitar
2026-09-16 13:14:55 -04:00
parent 8790cfb1e2
commit dd04493e25
73 changed files with 1272 additions and 1367 deletions
+5 -5
View File
@@ -4,7 +4,7 @@ import * as React from "react"
import useEmblaCarousel, {
type UseEmblaCarouselType,
} from "embla-carousel-react"
import { ArrowLeft, ArrowRight } from "lucide-react"
import { RiArrowLeftLine, RiArrowRightLine } from "@remixicon/react"
import { cn } from "@/lib/utils"
import { Button } from "@/components/ui/button"
@@ -77,10 +77,10 @@ function Carousel({
const handleKeyDown = React.useCallback(
(event: React.KeyboardEvent<HTMLDivElement>) => {
if (event.key === "ArrowLeft") {
if (event.key === "RiArrowLeftLine") {
event.preventDefault()
scrollPrev()
} else if (event.key === "ArrowRight") {
} else if (event.key === "RiArrowRightLine") {
event.preventDefault()
scrollNext()
}
@@ -195,7 +195,7 @@ function CarouselPrevious({
onClick={scrollPrev}
{...props}
>
<ArrowLeft />
<RiArrowLeftLine />
<span className="sr-only">Previous slide</span>
</Button>
)
@@ -225,7 +225,7 @@ function CarouselNext({
onClick={scrollNext}
{...props}
>
<ArrowRight />
<RiArrowRightLine />
<span className="sr-only">Next slide</span>
</Button>
)