mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
style(ui): size chat suggestions to match the composer width
Use a full-width 3-column grid above the textarea with slightly larger chip padding and type so prompts stay readable
This commit is contained in:
parent
1d6e42b425
commit
77fef603b5
1 changed files with 2 additions and 5 deletions
|
|
@ -50,15 +50,12 @@ export function ChatComposer({
|
|||
return (
|
||||
<div className={cn("relative flex w-full flex-col gap-3", className)}>
|
||||
{showSuggestions && suggestions.length > 0 && (
|
||||
<div
|
||||
className="mx-auto grid w-full max-w-xl grid-cols-3 gap-2"
|
||||
data-testid="chat-suggested-actions"
|
||||
>
|
||||
<div className="grid w-full grid-cols-3 gap-2" data-testid="chat-suggested-actions">
|
||||
{suggestions.map((suggestion) => (
|
||||
<button
|
||||
key={suggestion}
|
||||
type="button"
|
||||
className="rounded-lg border border-border/50 bg-card/30 px-2.5 py-2 text-left text-[11px] leading-snug text-muted-foreground transition-all duration-200 hover:-translate-y-0.5 hover:bg-card/60 hover:text-foreground"
|
||||
className="rounded-xl border border-border/50 bg-card/30 px-3 py-2.5 text-left text-[12px] leading-snug text-muted-foreground transition-all duration-200 hover:-translate-y-0.5 hover:bg-card/60 hover:text-foreground"
|
||||
onClick={() => onSuggestionSelect?.(suggestion)}
|
||||
>
|
||||
{suggestion}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue