Skip to content

Commit

Permalink
https://github.com/discourse-pro/df-core/issues/17
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Feb 28, 2024
1 parent 39c7f8f commit 9743389
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions assets/stylesheets/_topic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,16 @@ code, pre {
line-height: normal;
font-weight: bold;
}
pre > code {
font-weight: normal; // Блоки кода жирным не выделяем
max-height: none; // В ядре: 500px
pre {
// 2024-02-28
// 1) "A page with a long code block is displayed wrongly": https://github.com/discourse-pro/df-core/issues/17
// 2) The original rule: `max-height: 2000px;`
// https://github.com/discourse/discourse/blob/v3.2.0/app/assets/stylesheets/common/base/topic-post.scss#L1023
max-height: none;
> code {
font-weight: normal; // Блоки кода жирным не выделяем
max-height: none; // В ядре: 500px
}
}
.container.posts {
// 2022-08-14 https://github.com/discourse/discourse/blob/v2.9.0.beta9/app/assets/stylesheets/common/base/topic.scss#L29
Expand Down

0 comments on commit 9743389

Please sign in to comment.