Commit 5b093da0 authored by Derek Schaller's avatar Derek Schaller
Browse files

use styled

parent 0605fe2b
Showing with 6 additions and 2 deletions
+6 -2
......@@ -9,6 +9,10 @@ const CopyButtonContainer = styled(Grid)({
flex: 0,
});
const ContentContainer = styled(Grid)({
flex: 1,
});
const Pre = styled.pre({
border: "1px solid rgba(13, 16, 48, 0.38)",
backgroundColor: "rgba(13,16,48,0.12)",
......@@ -39,9 +43,9 @@ const Code = ({ children, showCopyButton = true }: CodeProps) => (
</Fab>
</CopyButtonContainer>
)}
<Grid style={{ flex: 1 }}container justify="flex-start" alignItems="center">
<ContentContainer justify="flex-start" alignItems="center">
{children}
</Grid>
</ContentContainer>
</Pre>
);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment