Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit b012f8d

Browse files
committed
fix(plugins/plugin-client-common): some small tweaks to Commentary headers would help
Fixes #5893
1 parent 1ff88b9 commit b012f8d

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

plugins/plugin-client-common/src/components/Content/Markdown.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,11 @@ export default class Markdown extends React.PureComponent<Props> {
114114
return <Link {...props} href={href} target={target} onClick={onClick} />
115115
}
116116
},
117-
code: props => <CodeSnippet value={props.value} onCopy={this.onCopy.bind(this, props.value)} />,
117+
code: props => (
118+
<p>
119+
<CodeSnippet value={props.value} onCopy={this.onCopy.bind(this, props.value)} />
120+
</p>
121+
),
118122
heading: props => {
119123
const valueChild =
120124
props.children && props.children.length === 1

plugins/plugin-client-common/web/scss/components/Terminal/Commentary.scss

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,26 @@
7676
@include Scrollback {
7777
@include h1 {
7878
font-weight: 500;
79-
font-size: 2.125rem;
79+
font-size: 1.875rem;
8080
letter-spacing: 0.32px;
81-
padding: 0.5rem 1rem 0.5rem 0.25rem;
81+
padding: 0.875rem 1rem 0.875rem 0.25rem;
8282
border-bottom: 1px solid var(--color-table-border2);
83-
margin-bottom: 0.5rem;
83+
margin-bottom: 0.875rem;
84+
85+
&:first-child {
86+
padding-top: 0;
87+
}
8488
}
8589

8690
@include h2 {
87-
font-weight: 400;
88-
font-size: 1.5rem;
91+
font-weight: 500;
92+
font-size: 1.625rem;
8993
letter-spacing: 0.32px;
90-
margin: 0 0 0.5rem;
94+
margin: 0.5rem 0;
95+
96+
&:first-child {
97+
margin-top: 0;
98+
}
9199

92100
&:before {
93101
display: none;

0 commit comments

Comments
 (0)