🎨 style(chatMessage/index.tsx): add responsive max-width to the markdown container to improve readability on smaller screens
This commit is contained in:
parent
df31285395
commit
43063dd00f
1 changed files with 1 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ export default function ChatMessage({
|
||||||
remarkPlugins={[remarkGfm, remarkMath]}
|
remarkPlugins={[remarkGfm, remarkMath]}
|
||||||
rehypePlugins={[rehypeMathjax]}
|
rehypePlugins={[rehypeMathjax]}
|
||||||
className="markdown prose inline-block break-words text-primary
|
className="markdown prose inline-block break-words text-primary
|
||||||
dark:prose-invert"
|
dark:prose-invert sm:max-w-[30vw] lg:max-w-[40vw]"
|
||||||
components={{
|
components={{
|
||||||
code({ node, inline, className, children, ...props }) {
|
code({ node, inline, className, children, ...props }) {
|
||||||
if (children.length) {
|
if (children.length) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue