Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code block in a <summary> overflows the post bounds #1249

Closed
cellio opened this issue Nov 26, 2023 · 0 comments · Fixed by #1558
Closed

Code block in a <summary> overflows the post bounds #1249

cellio opened this issue Nov 26, 2023 · 0 comments · Fixed by #1558
Labels
area: frontend Changes to front-end code complexity: unassessed Needs further developer investigation before complexity/feasibility can be determined. priority: low

Comments

@cellio
Copy link
Member

cellio commented Nov 26, 2023

meta:288974

If someone uses a code block as the summary text in a <summary>/<details> block, the text can overflow the bounds of the post body:

screenshot

See the linked post for more examples.

We don't need to support such uses of these HTML tags, but we should prevent the overflow. I don't care if we use horizontal scrolling, truncate with "...", or something else I haven't thought of, but let's enforce the boundary somehow.

@cellio cellio added area: frontend Changes to front-end code type: bug priority: low complexity: unassessed Needs further developer investigation before complexity/feasibility can be determined. labels Nov 26, 2023
@Oaphi Oaphi closed this as completed in d8322f4 Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: frontend Changes to front-end code complexity: unassessed Needs further developer investigation before complexity/feasibility can be determined. priority: low
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant