fix: enhance img component className handling#462
Conversation
✅ Deploy Preview for tanstack ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Pull Request Overview
This PR enhances the img component in the Markdown component to properly handle className props by merging them with default styling classes.
- Modified the img component to accept and merge additional className props with existing default styles
| className="max-w-full h-auto rounded-lg shadow-md" | ||
| className={`max-w-full h-auto rounded-lg shadow-md ${ | ||
| props.className ?? '' | ||
| }`} |
There was a problem hiding this comment.
[nitpick] The template literal with line breaks makes the className construction harder to read and maintain. Consider using a utility function like clsx or cn for cleaner class merging, or format it as a single line.
Yes, here the browsers´ logos are not properly styled - should be inlined (like here) I searched other places and |

No description provided.