Skip to content

Nested <details> have a gap at the bottom #5415

@ThePotatoArchivist

Description

@ThePotatoArchivist

Please confirm the following.

What browsers are you seeing the problem on?

No response

Describe the bug

If you put a <details> inside a <details>, when the outer is expanded the inner will display a gap at the bottom.

Image

Steps to reproduce

  1. In some markdown field, enter
<details>

<summary>Test</summary>

<details>

<summary>Test</summary>

Content
  
</details>
  
</details>
  1. Show preview
  2. Expand the outer details
  3. The inner details has a gap at the bottom as if it were open

Expected behavior

It should not display a gap, like top-level <details>.

Additional context

I skipped the support portal step because I assume this isn't a support thing

Metadata

Metadata

Assignees

No one assigned

    Labels

    websiteRelates to Modrinth.com web frontend

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions