Fix padding in chat ScrollArea pushing out scrollbar (#1959)
This commit is contained in:
@@ -387,7 +387,8 @@ export default function ChatView({
|
||||
activities={botConfig?.activities || null}
|
||||
/>
|
||||
) : (
|
||||
<ScrollArea ref={scrollRef} className="flex-1 px-4" autoScroll>
|
||||
/* padding needs to be passed into the container inside ScrollArea to avoid pushing the scrollbar out */
|
||||
<ScrollArea ref={scrollRef} className="flex-1" paddingX={4} autoScroll>
|
||||
<SearchView className="mt-[16px]" scrollAreaRef={scrollRef}>
|
||||
{filteredMessages.map((message, index) => (
|
||||
<div key={message.id || index} className="mt-[16px] message-content">
|
||||
|
||||
Reference in New Issue
Block a user