mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-02 19:55:18 +02:00
refactor(chat): enhance chat example prompts layout and accessibility
- Updated TabsContent component to include focus-visible outline for better accessibility. - Adjusted ScrollArea height to improve visual consistency and responsiveness. - Increased padding in the list for better spacing and usability.
This commit is contained in:
parent
d0194f4692
commit
66bd7e6fc3
1 changed files with 7 additions and 3 deletions
|
|
@ -57,9 +57,13 @@ export function ChatExamplePrompts({ onSelect }: ChatExamplePromptsProps) {
|
|||
</TabsList>
|
||||
</div>
|
||||
{CHAT_EXAMPLE_CATEGORIES.map((category) => (
|
||||
<TabsContent key={category.id} value={category.id} className="mt-3">
|
||||
<ScrollArea className="max-h-48">
|
||||
<ul className="flex flex-col gap-2 pr-2">
|
||||
<TabsContent
|
||||
key={category.id}
|
||||
value={category.id}
|
||||
className="mt-3 focus-visible:outline-none"
|
||||
>
|
||||
<ScrollArea className="h-[clamp(7.5rem,26vh,12rem)]">
|
||||
<ul className="flex flex-col gap-2 pr-3">
|
||||
{category.prompts.map((prompt) => (
|
||||
<li key={prompt}>
|
||||
<ExamplePromptButton prompt={prompt} onSelect={onSelect} />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue