Skip to content

scrollable-code-and-blockquote mistakenly removes code block padding #5540

Closed

Description

@hyrious

Please ensure:

  • The bug is caused by Refined GitHub. It doesn't happen if I disable the extension.
  • The bug happens after clearing extension cache. The "Clear cache" button below can also be found at the bottom of the options page.

Example URLs

sveltejs/language-tools#1418

(just find some issue with no-highlight pre elements)

Extension version

22.3.18

Browser(s) used

Chrome 99.0.4844.74 (x86_64) on MacOS 12.3

Description

Just look at the code block in that issue, the padding-bottom was shorten

Snipaste_2022-03-22_14-11-34

because scrollable-code-and-blockquote defined…

:root .comment-body :is(blockquote, pre) { padding-bottom: 0.2em }

…which is more specific than GitHub's

.markdown-body pre { padding: 16px }

Include in this issue:

  • Screenshots/video/gif demonstrating the bug, if it’s visual
  • Console errors, if any

Activity

  1. changed the title [-]scrollable-code-and-blockquote padding-bottom on no-highlight pre elements[/-] [+]`scrollable-code-and-blockquote` padding-bottom on no-highlight pre elements[/+] on Mar 22, 2022
  2. kidonng commented on Mar 22, 2022

    @kidonng
    Member

    🥲 we are back to #3012 (comment) (fortunately, only partly)

  3. added 2 commits that reference this issue on Mar 22, 2022
  4. changed the title [-]`scrollable-code-and-blockquote` padding-bottom on no-highlight pre elements[/-] [+]`scrollable-code-and-blockquote` mistakenly removes code block padding[/+] on Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions