🎨 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]}
|
||||
rehypePlugins={[rehypeMathjax]}
|
||||
className="markdown prose inline-block break-words text-primary
|
||||
dark:prose-invert"
|
||||
dark:prose-invert sm:max-w-[30vw] lg:max-w-[40vw]"
|
||||
components={{
|
||||
code({ node, inline, className, children, ...props }) {
|
||||
if (children.length) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue