-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add: option to view plaintext chat message. Issue/2508 (#3496)
Fixes: #2508 Rendered by suspense <img width="537" alt="image" src="https://github.com/LAION-AI/Open-Assistant/assets/61619422/b259d0ad-44bb-4d80-9590-8a7fb9964c66"> Plain text <img width="587" alt="image" src="https://github.com/LAION-AI/Open-Assistant/assets/61619422/723600ec-cca2-4716-8abf-fde3ea2e63db"> I am not sure whether using memo on isPlainText has any performance gain. I need your opinions. --------- Co-authored-by: notmd <notmd1811@gmail.com>
- Loading branch information
1 parent
b2c7836
commit 4f1b1eb
Showing
5 changed files
with
75 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { LucideProps } from "lucide-react"; | ||
|
||
export const MarkdownIcon = (props: LucideProps) => { | ||
return ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
className="icon icon-tabler icon-tabler-markdown" | ||
width={24} | ||
height={24} | ||
viewBox="0 0 24 24" | ||
strokeWidth="2" | ||
stroke="currentColor" | ||
fill="none" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
{...props} | ||
> | ||
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path> | ||
<path d="M3 5m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z"></path> | ||
<path d="M7 15v-6l2 2l2 -2v6"></path> | ||
<path d="M14 13l2 2l2 -2m-2 2v-6"></path> | ||
</svg> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { LucideProps } from "lucide-react"; | ||
|
||
export const MarkdownOffIcon = (props: LucideProps) => { | ||
return ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
className="icon icon-tabler icon-tabler-markdown-off" | ||
width={24} | ||
height={24} | ||
viewBox="0 0 24 24" | ||
strokeWidth="2" | ||
stroke="currentColor" | ||
fill="none" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
{...props} | ||
> | ||
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path> | ||
<path d="M9 5h10a2 2 0 0 1 2 2v10"></path> | ||
<path d="M19 19h-14a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 1.85 -2"></path> | ||
<path d="M7 15v-6l2 2l1 -1m1 1v4"></path> | ||
<path d="M17.5 13.5l.5 -.5m-2 -1v-3"></path> | ||
<path d="M3 3l18 18"></path> | ||
</svg> | ||
); | ||
}; |