Redocly / Redocly/redoc

Large whitespace between headers

Open
#1,108 3 comments 11 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
25.9k
Forks
2.4k
Avg merge
13h 10m
Merged PRs (30d)
4

Description

We are seeing, on big screens, very large gaps between headers. We are using no other CSS at all, an just the vanilla redoc js. This is different to https://github.com/Redocly/redoc/issues/874 in that that appears to be for MD screens, whereas we see this on all screens.

Affects (at least) redoc@2.0.0-rc.41 - redoc@2.0.0-rc.18

Example:

image

The relevant HTML section:

image

To fix it we have to use:

  <style type="text/css">
    /* Remove excessive whitespace between headers */
    .dluJDj {
      padding: 0 0 !important;
    }

    .hiuczA {
      padding: 0 0 !important;
    }
  </style>

But given these class names are unstable this is not a permanent solution.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the excessive header spacing with redoc@2.0.0-rc.41 through redoc@2.0.0-rc.18 on a large screen, using the HTML and screenshots in the issue as the starting point. Trace the generated header styles responsible for the padding and replace the unstable class-name workaround with a permanent fix, verified by the spacing no longer appearing without custom CSS.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
documentation, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.