We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d10106 commit c04e928Copy full SHA for c04e928
packages/react-code-blocks/src/components/Snippet/Snippet.tsx
@@ -17,10 +17,11 @@ interface Props {
17
const SnippetWrapper = styled.div<
18
Props & {
19
style: any;
20
+ width?: string;
21
}
22
>`
23
position: relative;
- width: ${({ width }) => width};
24
+ width: ${({ width }) => !!width ? width : 'auto'};
25
max-width: 100%;
26
padding: 8pt;
27
padding-right: calc(2 * 16pt);
0 commit comments