Skip to content

Commit

Permalink
bugfix: fix floating clear button, bugfix: fix margin bar too high issue
Browse files Browse the repository at this point in the history
  • Loading branch information
densumesh committed Jan 9, 2025
1 parent 26f35d3 commit 6076f4a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 25 deletions.
16 changes: 0 additions & 16 deletions clients/search-component/src/TrieveModal/Chat/ChatMode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,22 +96,6 @@ export const ChatMode = () => {
</span>
</div>
)}
{!props.inline && (currentQuestion || messages.length) ? (
<div className="chat-controls-row">
<button
onClick={() =>
currentQuestion
? askQuestion(currentQuestion)
: isDoneReading
? clearConversation()
: stopGeneratingMessage()
}
className="clear-button"
>
{currentQuestion ? "Enter" : isDoneReading ? "Clear" : "Stop"}
</button>
</div>
) : null}
<div
className={`system-information-wrapper${
currentGroup ? " with-group" : ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const UploadImage = () => {
mode === "chat"
? "right-14"
: query.length == 0
? "right-[9.5rem]"
? "right-[10rem]"
: "right-10"
} absolute z-20 dark:text-white text-zinc-700`}
>
Expand Down
8 changes: 0 additions & 8 deletions clients/search-component/src/TrieveModal/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ body {

.chat-outer-wrapper {
@apply justify-between w-full h-full;

&.chat-outer-popup {
@apply mt-10 sm:mt-12;
}
}
}

Expand Down Expand Up @@ -592,10 +588,6 @@ body {
.chat-outer-wrapper {
@apply flex flex-col px-4 scroll-smooth mt-0;

&.chat-outer-popup {
@apply mt-12;
}

.ai-message {
.message-wrapper {
@apply col-span-2 pr-4;
Expand Down

0 comments on commit 6076f4a

Please sign in to comment.