fix: settings col width in advanced view (#233)

This commit is contained in:
Kristin Aoki
2023-02-15 16:37:55 -05:00
committed by GitHub
parent 6156798e02
commit 70c0fc6dcf
10 changed files with 35 additions and 26 deletions

View File

@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`RawEditor renders as expected with content equal to null 1`] = `
<Fragment>
<div>
<Alert
variant="danger"
>
@@ -9,11 +9,11 @@ exports[`RawEditor renders as expected with content equal to null 1`] = `
html
editor.
</Alert>
</Fragment>
</div>
`;
exports[`RawEditor renders as expected with default behavior 1`] = `
<Fragment>
<div>
<Alert
variant="danger"
>
@@ -32,11 +32,11 @@ exports[`RawEditor renders as expected with default behavior 1`] = `
lang="html"
value="eDiTablE Text"
/>
</Fragment>
</div>
`;
exports[`RawEditor renders as expected with lang equal to xml 1`] = `
<Fragment>
<div>
<injectIntl(ShimmedIntlComponent)
innerRef={
Object {
@@ -48,5 +48,5 @@ exports[`RawEditor renders as expected with lang equal to xml 1`] = `
lang="xml"
value="eDiTablE Text"
/>
</Fragment>
</div>
`;

View File

@@ -18,7 +18,7 @@ export const RawEditor = ({
const value = getValue(content);
return (
<>
<div>
{lang === 'xml' ? null : (
<Alert variant="danger">
You are using the raw {lang} editor.
@@ -32,7 +32,7 @@ export const RawEditor = ({
/>
) : null}
</>
</div>
);
};
RawEditor.defaultProps = {

View File

@@ -30,6 +30,7 @@ describe('RawEditor', () => {
},
content: null,
lang: 'html',
width: { width: '80%' },
};
test('renders as expected with default behavior', () => {