Skip to content

Commit 30ec24d

Browse files
Add inline code (codesandbox#3622)
* replay changes * fix ts * add better markdown suppoprt * fix currentCommentId * dont show hr * not allow images in public sandboxes * final touches inlinecode * Revert index.md Co-authored-by: Siddharth Kshetrapal <siddharth.kshetrapal@gmail.com>
1 parent 32f1c10 commit 30ec24d

File tree

1 file changed

+14
-4
lines changed
  • packages/app/src/app/pages/Sandbox/Editor/Workspace/screens/Comments/Dialog

1 file changed

+14
-4
lines changed

packages/app/src/app/pages/Sandbox/Editor/Workspace/screens/Comments/Dialog/Comment.tsx

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ export const Comment = ({ source }) => {
5656
source={source}
5757
renderers={{
5858
text: ({ children }) => (
59-
<Text variant="muted" size={13}>
59+
<Text variant="muted" size={3}>
6060
{children}
6161
</Text>
6262
),
6363
heading: ({ children }) => (
64-
<Text block variant="muted" size={13}>
64+
<Text block variant="muted" size={3}>
6565
{children}
6666
</Text>
6767
),
@@ -74,9 +74,19 @@ export const Comment = ({ source }) => {
7474
inlineCode: props => (
7575
<Element
7676
as="span"
77-
css={css({ backgroundColor: 'mutedForeground' })}
77+
css={css({
78+
backgroundColor: 'grays.200',
79+
paddingX: '2px',
80+
borderRadius: 'small',
81+
})}
7882
>
79-
<Text variant="danger" as="code">
83+
<Text
84+
css={css({
85+
color: 'reds.500',
86+
})}
87+
size={3}
88+
as="code"
89+
>
8090
{props.children}
8191
</Text>
8292
</Element>

0 commit comments

Comments
 (0)