Skip to content

Commit f929b89

Browse files
author
Rankin Zheng
committed
Update MessageMarkdown component styles
1 parent 730cc32 commit f929b89

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

  • src/views/components/MessageMarkdown

src/views/components/MessageMarkdown/index.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ const useStyles = createStyles((theme) => ({
2222
'&:hover':{
2323
color:theme.colors.merico[6]
2424
}
25+
},
26+
codeOverride:{
27+
code:{
28+
padding: "1px 0px !important",
29+
}
2530
}
2631
}));
2732
interface MessageMarkdownProps extends React.ComponentProps<typeof ReactMarkdown> {
@@ -236,12 +241,12 @@ Generate a professionally written and formatted release note in markdown with th
236241
}
237242

238243
return !inline && lanugage ? (
239-
<div style={{ position: 'relative' }}>
244+
<div style={{ position: 'relative' }} className={classes.codeOverride}>
240245
<LanguageCorner language={lanugage} />
241246
<CodeButtons language={lanugage} code={value} />
242247
<SyntaxHighlighter {...props}
243248
language={lanugage}
244-
customStyle={{ padding: '3em 1em 1em 2em' }}
249+
customStyle={{ padding: '35px 10px 10px 10px' }}
245250
style={okaidia}
246251
wrapLongLines={wrapLongLines}
247252
PreTag="div">

0 commit comments

Comments
 (0)