Skip to content

Commit

Permalink
Truncate history button (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
I-Vishal-Kumar authored May 3, 2024
1 parent 3c2db7e commit 99c5aa4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/components/ChatHistoryButton/ChatHistoryButton.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@
border-color: #adadad;
border-width: 0.5px;
border-style: solid;
max-width: 60%;
cursor: pointer;
transition: color 0.3s ease, border-color 0.3s ease;
}

.rcb-view-history-button > p{
margin: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
4 changes: 3 additions & 1 deletion src/components/ChatHistoryButton/ChatHistoryButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ const ChatHistoryButton = ({
}}
className="rcb-view-history-button"
>
{botOptions.chatHistory?.viewChatHistoryButtonText}
<p>
{botOptions.chatHistory?.viewChatHistoryButtonText}
</p>
</div>
</div>
);
Expand Down

0 comments on commit 99c5aa4

Please sign in to comment.