Skip to content

Commit 95a771d

Browse files
committed
Minor appearance improvement.
1 parent ff025c2 commit 95a771d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/components/forms/EditExerciseSimpleConfigForm/EditExerciseSimpleConfigTestCompilation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,13 +224,13 @@ class EditExerciseSimpleConfigTestCompilation extends Component {
224224
)}
225225
</InsetPanel>
226226
) : (
227-
<div className="text-muted compilation-open" onClick={this.compilationOpen}>
227+
<InsetPanel className="text-muted compilation-open" size="small" onClick={this.compilationOpen}>
228228
<ExpandCollapseIcon isOpen={false} gapRight />
229229
<FormattedMessage
230230
id="app.editExerciseSimpleConfigTests.compilationTitle"
231231
defaultMessage="Compilation/Execution"
232232
/>
233-
</div>
233+
</InsetPanel>
234234
)}
235235
</>
236236
);

src/components/widgets/InsetPanel/InsetPanel.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { arrayToObject } from '../../../helpers/common';
55
import styles from './InsetPanel.less';
66

77
// Inset panel replaces old <Well> component from bootstrap 3
8-
const InsetPanel = ({ children, className = '', size = '' }) => {
8+
const InsetPanel = ({ children, className = '', size = '', ...props }) => {
99
const givenClasses = className
1010
.split(' ')
1111
.map(s => s.trim())
@@ -22,7 +22,8 @@ const InsetPanel = ({ children, className = '', size = '' }) => {
2222
cls => cls, // values become keys
2323
() => true // new values are 'trues'
2424
),
25-
})}>
25+
})}
26+
{...props}>
2627
{children}
2728
</div>
2829
);

0 commit comments

Comments
 (0)