Skip to content

Commit

Permalink
chore: fix code style in markdown (#37141)
Browse files Browse the repository at this point in the history
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Bug Fixes**
- Adjusted CSS styles for the Markdown component to improve the display
of inline code elements without specific programming language classes.
  
- **Style**
- Enhanced specificity of styles for inline code snippets, ensuring
consistent styling across different scenarios.
- Added `white-space: normal;` to improve whitespace handling within
code elements.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

<!-- This is an auto-generated comment: Cypress test results  -->
> [!WARNING]
> Tests have not run on the HEAD
67606f8 yet
> <hr>Wed, 30 Oct 2024 14:03:46 UTC
<!-- end of auto-generated comment: Cypress test results  -->
  • Loading branch information
jsartisan authored Oct 30, 2024
1 parent 2cfe0b0 commit 5458e89
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,13 @@
overflow: auto;
}

code:not(pre code) {
code:not([class*="language-"]) {
padding-inline: var(--inner-spacing-1);
background: var(--color-bg-neutral-subtle);
color: var(--color-fg-negative);
border-radius: var(--border-radius-elevation-3);
word-break: break-word;
white-space: normal;
outline: var(--border-width-1) solid var(--color-bg-neutral-soft);
}

Expand Down

0 comments on commit 5458e89

Please sign in to comment.