Skip to content

fix(style): Fixed the problem of content overflowing the screen.#740

Merged
genedna merged 3 commits into
gitmono-dev:mainfrom
besscroft:main
Dec 13, 2024
Merged

fix(style): Fixed the problem of content overflowing the screen.#740
genedna merged 3 commits into
gitmono-dev:mainfrom
besscroft:main

Conversation

@besscroft

Copy link
Copy Markdown
Contributor

Before:
image

After:
image

@vercel

vercel Bot commented Dec 12, 2024

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mega ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 13, 2024 0:43am

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 suggestion.

return (
<div className="w-full">
<div
dangerouslySetInnerHTML={{ __html: outputHtml }}

Copilot AI Dec 13, 2024

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure that the outputHtml content is properly sanitized before being passed to dangerouslySetInnerHTML to prevent potential XSS attacks.

Suggested change
dangerouslySetInnerHTML={{ __html: outputHtml }}
dangerouslySetInnerHTML={{ __html: DOMPurify.sanitize(outputHtml) }}

Copilot uses AI. Check for mistakes.
@genedna genedna added this pull request to the merge queue Dec 13, 2024
Merged via the queue into gitmono-dev:main with commit 5be879f Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants