mirror of
https://github.com/aljazceru/goose.git
synced 2026-01-02 22:14:26 +01:00
fix scrollbar under search - alt take (#1964)
Co-authored-by: Zane Staggs <zane@squareup.com>
This commit is contained in:
@@ -387,11 +387,10 @@ export default function ChatView({
|
||||
activities={botConfig?.activities || null}
|
||||
/>
|
||||
) : (
|
||||
/* 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}>
|
||||
<ScrollArea ref={scrollRef} className="flex-1" autoScroll>
|
||||
<SearchView scrollAreaRef={scrollRef}>
|
||||
{filteredMessages.map((message, index) => (
|
||||
<div key={message.id || index} className="mt-[16px] message-content">
|
||||
<div key={message.id || index} className="mt-4 px-4">
|
||||
{isUserMessage(message) ? (
|
||||
<UserMessage message={message} />
|
||||
) : (
|
||||
|
||||
@@ -82,7 +82,7 @@ export const SearchBar: React.FC<SearchBarProps> = ({
|
||||
|
||||
return (
|
||||
<div
|
||||
className={`fixed top-[36px] left-0 right-0 bg-bgAppInverse text-textProminentInverse z-50 ${
|
||||
className={`sticky top-0 bg-bgAppInverse text-textProminentInverse z-50 ${
|
||||
isExiting ? 'search-bar-exit' : 'search-bar-enter'
|
||||
}`}
|
||||
>
|
||||
|
||||
@@ -146,11 +146,7 @@ export const SearchView: React.FC<PropsWithChildren<SearchViewProps>> = ({
|
||||
searchResults={searchResults}
|
||||
/>
|
||||
)}
|
||||
<div
|
||||
className={`transition-transform ${isSearchVisible ? 'translate-y-[52px] pb-[52px]' : 'translate-y-0'}`}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user