Skip to content

Commit c04e928

Browse files
committed
one more
1 parent 0d10106 commit c04e928

File tree

1 file changed

+2
-1
lines changed
  • packages/react-code-blocks/src/components/Snippet

1 file changed

+2
-1
lines changed

packages/react-code-blocks/src/components/Snippet/Snippet.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ interface Props {
1717
const SnippetWrapper = styled.div<
1818
Props & {
1919
style: any;
20+
width?: string;
2021
}
2122
>`
2223
position: relative;
23-
width: ${({ width }) => width};
24+
width: ${({ width }) => !!width ? width : 'auto'};
2425
max-width: 100%;
2526
padding: 8pt;
2627
padding-right: calc(2 * 16pt);

0 commit comments

Comments
 (0)