@redocly/theme 0.9.8 → 0.9.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -63,6 +63,7 @@ exports.SampleControlsWrap = styled_components_1.default.div `
63
63
  exports.PreformattedCodeBlock = (0, styled_components_1.default)(CodeBlock_1.CodeBlock.withComponent('pre')) `
64
64
  overflow-x: auto;
65
65
  margin: 0;
66
+ max-height: var(--code-block-max-height);
66
67
  font-family: var(--code-font-family);
67
68
  padding: 20px;
68
69
  border-radius: var(--border-radius);
@@ -1195,7 +1195,7 @@ const code = (0, styled_components_1.css) `
1195
1195
  --code-block-background-color: #323f4b; // @presenter Color
1196
1196
  --code-block-border-color: var(--border-color); // @presenter Color
1197
1197
  --code-block-border-radius: var(--border-radius-lg); // @presenter BorderRadius
1198
- --code-block-max-height: 600px;
1198
+ --code-block-max-height: 50vh;
1199
1199
  --code-block-word-break: initial;
1200
1200
 
1201
1201
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/theme",
3
- "version": "0.9.8",
3
+ "version": "0.9.9",
4
4
  "description": "Shared UI components lib",
5
5
  "author": "team@redocly.com",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -62,6 +62,7 @@ export const SampleControlsWrap = styled.div`
62
62
  export const PreformattedCodeBlock = styled(CodeBlock.withComponent('pre'))`
63
63
  overflow-x: auto;
64
64
  margin: 0;
65
+ max-height: var(--code-block-max-height);
65
66
  font-family: var(--code-font-family);
66
67
  padding: 20px;
67
68
  border-radius: var(--border-radius);
@@ -1205,7 +1205,7 @@ const code = css`
1205
1205
  --code-block-background-color: #323f4b; // @presenter Color
1206
1206
  --code-block-border-color: var(--border-color); // @presenter Color
1207
1207
  --code-block-border-radius: var(--border-radius-lg); // @presenter BorderRadius
1208
- --code-block-max-height: 600px;
1208
+ --code-block-max-height: 50vh;
1209
1209
  --code-block-word-break: initial;
1210
1210
 
1211
1211
  /**